From cfc425af8f3371ab0df8893c055cb4b008bfc4bc Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Tue, 7 May 2024 07:03:41 -0400 Subject: [PATCH] doc: fix parameter in example (#294) the parameter in example is in the wrong constructor --- doc/python-usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python-usage.rst b/doc/python-usage.rst index ecd7f09..eec5986 100644 --- a/doc/python-usage.rst +++ b/doc/python-usage.rst @@ -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")