Skip to content
New issue

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

official ssd 1306 driver #47

Open
jpnielsen opened this issue May 16, 2023 · 2 comments
Open

official ssd 1306 driver #47

jpnielsen opened this issue May 16, 2023 · 2 comments

Comments

@jpnielsen
Copy link

jpnielsen commented May 16, 2023

Hi,

Beginner here, trying to get your micropython-micro-gui running on a raspberry pi pico + SSD1306 I2C display.

I grabbed micropython 1.20.0 for my pico - but it wouldn't "import ssd1306" (I thought it came with that - may it did some versions ago).

Your link to "Official SSD1306 driver" on this page https://github.com/peterhinch/micropython-font-to-py/blob/master/writer/DRIVERS.md

gives a "404 - page not found"

i tried combining new and older stuff - but the mini gui simple demo kept complaining that my ssd did't have "rgb".

Hope you'll look into it, in case micropython moved something around.

@jpnielsen
Copy link
Author

I'm not 100% sure this is the file I'm looking for

https://github.com/micropython/micropython-lib/blob/master/micropython/drivers/display/ssd1306/ssd1306.py

When I use it with "writer.py" it gives an error:

** File "writer.py", line 50, in set_textpos
File "writer.py", line 40, in _get_id
ValueError: Device must be derived from FrameBuffer.**

@peterhinch
Copy link
Owner

The drivers in micropython-lib were moved - you have found the correct version. Thanks for the report: I have corrected the links.

I think your code must be importing an invalid version as the error message does not make sense: the official version is derived from FrameBuffer as a glance at the code will confirm. Please ensure that the only copy of ssd1306.py on your device is from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants