0

Im using <LiquidCrystal.h> arduino library,on a 2x16 LCD screen, with an accelerometer. I'd like to flip the the text when my x value exceeds N value. I get how to output text. I tried straight up flipping the text, with an online converter, but the text that renders is garbage. lcd.print("¡pןɹoʍ 'oןןǝɥ"); // Print a message to the LCD.

enter image description here

asked Apr 23, 2022 at 21:21
5
  • what does this actually mean? ... flip text Commented Apr 23, 2022 at 22:08
  • @jsotola it means to rotate the letters. see example in the question. as Majkenko points out unicode chars wont do. but i have an idea. Commented Apr 23, 2022 at 22:50
  • I asked because it could also mean to reverse the background and foreground colors Commented Apr 23, 2022 at 23:40
  • @jsotola, ah I see. Commented Apr 24, 2022 at 1:52
  • can you link the datasheet of the LCD you have Commented Apr 26, 2022 at 18:58

1 Answer 1

5

It's not possible. The text is a simple ASCII character set that is encoded in ROM. It can't (other than a few user-defined characters) be changed. And being simple ASCII it doesn't support any UNICODE characters which are used for "upside down" text.

To do what you want you'd need a graphical LCD screen instead of a pure text one.

answered Apr 23, 2022 at 21:23
3
  • maybe I can make a bunch of byte arrays and write my own alphabet of upside down glyphs. Im dyslexic AF so it should be fun. I wonder how much it'll occupy in memory Commented Apr 23, 2022 at 22:48
  • 2
    @j0h You only have 8 user defined characters. Not enough for the whole alphabet. Maybe enough for a short word or two... Commented Apr 23, 2022 at 23:10
  • 1
    en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller Commented Apr 23, 2022 at 23:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.