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

Question: HD44780 Cursor Show/Hide and Line/Blink #175

Open albedozero opened 8 months ago

albedozero commented 8 months ago

Is there a way to show/hide the cursor and toggle the line/blink style on an HD44780 using this library?

Type of Raspberry Pi

I'm using RPi 3B+ and RPi 4

Linux Kernel version

Raspberry Pi OS (bookworm) 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux

Expected Behaviour

I'm imagining some additional properties for the hd44780 class that could be used to set the cursor style and position:

device.cursor = 'blink' ## options: 'hide', 'line', 'blink'
device.cursor_pos = 5, 1 ## column, row tuple