Skip to content

Commit

Permalink
doc: fix parameter in example (#294)
Browse files Browse the repository at this point in the history
the parameter in example is in the wrong constructor
  • Loading branch information
michaellee1019 authored May 7, 2024
1 parent de84800 commit cfc425a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/python-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ below,
from luma.core.legacy.font import proportional, LCD_FONT
from luma.led_matrix.device import max7219
serial = spi(port=0, device=0, gpio=noop(), block_orientation=-90)
device = max7219(serial, width=32, height=24)
serial = spi(port=0, device=0, gpio=noop())
device = max7219(serial, width=32, height=24, block_orientation=-90)
with canvas(device) as draw:
draw.rectangle(device.bounding_box, outline="white")
Expand Down

0 comments on commit cfc425a

Please sign in to comment.