Settings>Global>External Display
Use custom VGA out– turn this ON when running iOS 5 or earlier. Allows Output VGA Sideways for custom VGA out to work. Unfortunately as of this date, iOS 6 breaks all text editing when this is set on. For iOS 6, set this OFF.
Output VGA Sideways for custom VGA out– rotates the output of the screen through the VGA connector.
180– will rotate the VGA image 180 degrees.