Raspberry Pi 7" Touchscreen Display

The screen is upside down. How do I turn it around?

There is a file in the FAT32 partition of the MicroSD card named boot/config.txt. Add "lcd_rotate=2" without quotes to the end of the file to rotate the display and touch matrix 180 degrees.