LCD 1602 - Library

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
vitalis
Posts: 8
Joined: Fri Nov 29, 2019 6:04 am
Location: Finland

Re: LCD 1602 - Library

Post by vitalis » Sat Nov 30, 2019 10:22 pm

Do you mean that it should be done by implementing similar wrapper class to use FBConsole?
But is it possible for text, non-graphical LCD like 20x4 or 16x2?

Christian Walther
Posts: 88
Joined: Fri Aug 19, 2016 11:55 am

Re: LCD 1602 - Library

Post by Christian Walther » Sun Dec 01, 2019 11:32 am

Yes, the FBConsole class demonstrates how you need to subclass uio.IOBase so that it can be plugged into the REPL using os.dupterm. (Incidentally, is there any documentation for this? Searching for “IOBase” in the docs yields nothing.) Writing the text you get from there out to the display should then be straightforward – even simpler for a text-based display than a bitmapped one, I would assume.

vitalis
Posts: 8
Joined: Fri Nov 29, 2019 6:04 am
Location: Finland

Re: LCD 1602 - Library

Post by vitalis » Sun Dec 01, 2019 3:49 pm

Ok, having REPL on the "old school" type of 20x4 LCD sounds interesting! :)
If I will not succeed with my TFT 320x240, I will try that.

vitalis
Posts: 8
Joined: Fri Nov 29, 2019 6:04 am
Location: Finland

Re: LCD 1602 - Library

Post by vitalis » Sat Dec 07, 2019 4:20 pm

I have got TFT 320x240 working with esp32 and FBconsole (to some extent). But now I'm switching back to 20x4 LCD, it will be really interesting to get os.dupterm() working with it.
Christian Walther wrote:
Sun Dec 01, 2019 11:32 am
Incidentally, is there any documentation for this? Searching for “IOBase” in the docs yields nothing.
It will be good to have some docs about it.

Post Reply