We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is my code:
from luma.core.interface.serial import spi from luma.core.render import canvas from luma.lcd.device import st7735 serial = spi(height=128, width=128, h_offset=1, v_offset=2, bgr=True) device = st7735(serial) with canvas(device) as draw: draw.rectangle(device.bounding_box, outline="white", fill="black") draw.text((30,40), "Hello World", fill="red")
and here is my error message:
Traceback (most recent call last): File "gui.py", line 5, in <module> serial = spi(height=128, width=128, h_offset=1, v_offset=2, bgr=True) TypeError: __init__() got an unexpected keyword argument 'width'
Any idea what I am doing wrong? The unexpected keyword argument is different each time and I can run the examples fine.
The text was updated successfully, but these errors were encountered:
you're instantiating spi incorrectly, there's not a width param: https://github.com/rm-hull/luma.core/blob/master/luma/core/interface/serial.py#L250
width
See https://luma-lcd.readthedocs.io/en/latest/python-usage.html
Sorry, something went wrong.
No branches or pull requests
Here is my code:
and here is my error message:
Any idea what I am doing wrong? The unexpected keyword argument is different each time and I can run the examples fine.
The text was updated successfully, but these errors were encountered: