Skip to content

Commit

Permalink
doc: add width/height in hd44780 usage examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thijstriemstra committed Nov 14, 2021
1 parent 054cfee commit 61480cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/HD44780.rst
Expand Up @@ -47,7 +47,7 @@ the display is to use the `text` property which operates similarly to the
from luma.lcd.device import hd44780
interface = bitbang_6800(RS=7, E=8, PINS=[25, 24, 23, 27])
device = hd44780(interface)
device = hd44780(interface, width=16, height=2)
device.text = 'Hello World'
Expand Down Expand Up @@ -116,7 +116,7 @@ Here is a small example of how this can be leveraged.
from PIL import Image, ImageDraw
interface = bitbang_6800(RS=7, E=8, PINS=[25, 24, 23, 27])
device = hd44780(interface)
device = hd44780(interface, width=16, height=2)
def progress_bar(width, height, percentage):
img = Image.new('1', (width, height))
Expand Down

0 comments on commit 61480cf

Please sign in to comment.