Hello Arduino collegues,
i have a question or i may did not find the correct way. Is it possible to swap the Display using a command. I would like to turn the Display around 180 degrees (without turning the PCB because of space in a Little box). Hardware is the LCD 16X2 thanks and best regards Sven..
No, you can NOT change directions with a regular 16x2.
However you can buy modules with 16x1 pins at the top Left or at the bottom Right or even a double row 8x2 at the Right side.
The Top Left module are the most common type. There might even be other geometry available. The COG (chip on glass) diisplays often have flexible ribbons.
david_prentice:
When Bill Perry wakes up, he will know more.
Funny..
Actually, Don (floresta) is the expert on the actual LCD h/w and especially of the many various pinout incantations.
If using an i2c backpack a cable is usually used for the i2c & power connections so if you have one that is symetric (LCD in center of PCB) it can simple be mounted flipped around.
In some cases there may be clearance issues with the backpack header pins, depending on which backpack you have. But worst case if that is your only issue, you can unsolder the header, and solder wires directly to the backpack PCB.
Bottom line is that for text based (hd44780) type displays the character orientation is fixed so there is no way to alter it in s/w.
You could switch to a graphic LCD. There are many available including with I2C & spi interfaces and the libraries to drive them usually have a way to rotate how the display is rendered so you could what you want.