Hi All,
I am currently working with a uC which is running micropython in a frozen state. Using REPL method I can run some pretty lengthy and simple scripts. I have been trying to implement a ssd1306 display using I2c. I have found that the copy of uPy I have does not contain frambebuf as a module. I have tried working with Tony's FrameBuffer pure python and the published drivers here. Can someone help me to get these components into one script so it can be loaded onto the uc? I am not entirely new to this but this challenge has been baffling me..... Is it possible?
SSD1306 and frozen micropython uc
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: SSD1306 and frozen micropython uc
What hardware platform are you using?
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: SSD1306 and frozen micropython uc
it is a digi cellular modem with Built-in MicroPython support, 24KB RAM / 8KB Flash
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: SSD1306 and frozen micropython uc
It looks like the developers who ported MicroPython to that platform have chosen to omit the framebuf module, perhaps to save RAM. It is available by default on the Pyboard and ESP8266.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: SSD1306 and frozen micropython uc
I understand. I was hoping to make some kind of work around where the frambebuf/driver/main were all in same script...
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: SSD1306 and frozen micropython uc
Unless you have access to the MicroPython sourcecode for your platform and have the tools to rebuild and deploy it I'm afraid your options are extremely limited.
If you can successfully build and deploy the code, then I'm sure we can advise on how to include the official framebuf module.
If you can successfully build and deploy the code, then I'm sure we can advise on how to include the official framebuf module.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.