rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

Support for HT1621 Module Character LCD #35

Closed thijstriemstra closed 7 years ago

thijstriemstra commented 7 years ago

it's called 5V LCD Module 6Bit 8-Segment 3-wires SPI HT1621 Module Character LCD for Arduino.

On ebay: http://www.ebay.com/itm/351939450953

s-l1600

thijstriemstra commented 7 years ago

@rm-hull also sent one your way

rm-hull commented 7 years ago

Awesome... 😆

rm-hull commented 7 years ago

Arrived today, pulling together a driver now, rudimentaries are there:

image

It will most likely be driven like the max7219 by wrapping the sevensegment class around the driver, eg.


from luma.lcd.device import ht1621
from luma.core.virtual import sevensegment

device = sevensegment(ht1621())
device.text = "Hello"

[the sevensegment class will need to be pulled into luma.core]

thijstriemstra commented 7 years ago

nice! expecting mine to arrive any day now.

rm-hull commented 7 years ago

WIP on branch https://github.com/rm-hull/luma.lcd/tree/ht1621

Its getting there, but the segments are mapped differently to the max7219 segments, so not sure if it is a good idea to push those down into core. At the moment I just created a hack test script that converts the segment bytes on the fly.

image

thijstriemstra commented 7 years ago

looks very crisp. but the battery icon is kinda burnt in there?

rm-hull commented 7 years ago

Like any LCD, unless you view it directly head on, you see the slight ghosting of the unlit segments. The viewing angles aren't great. Also, can't appear to switch the backlight on or off (it's on all the time)

thijstriemstra commented 7 years ago

Ok but its first screen i see with pre-defined icons as such.