M5Cloud icon indicating copy to clipboard operation
M5Cloud copied to clipboard

Ability to set background color

Open pastukhov opened this issue 7 years ago • 6 comments

Is it possible to set background color without lcd.clear()?

pastukhov avatar Mar 07 '18 13:03 pastukhov

Yes. you can: lcd.clear(color=lcd.ORANGE) or lcd.fill(color=lcd.ORANGE)

0x1abin avatar Mar 08 '18 04:03 0x1abin

It will reset wole screen. I need to display few strings with different background color each. Is it possible?

pastukhov avatar Mar 09 '18 09:03 pastukhov

lcd.setTextColor(color=lcd.BLACK, bcolor=lcd.WHITE) This function can set the text background color, if you change the background color, you need to repaint the text.

0x1abin avatar Mar 12 '18 02:03 0x1abin

Awesome! Almost what i need. But now i see that wrap=True argument for lcd.print isn't accurate. image

pastukhov avatar Mar 13 '18 12:03 pastukhov

Is it source code of lcd module available?

pastukhov avatar Mar 14 '18 21:03 pastukhov

https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/blob/master/MicroPython_BUILD/components/micropython/esp32/moddisplay.c

Docs: https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/display

mcauser avatar Aug 10 '18 00:08 mcauser