SSD1306 and frozen micropython uc

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
kenemon
Posts: 3
Joined: Wed Mar 14, 2018 2:34 pm

SSD1306 and frozen micropython uc

Post by kenemon » Wed Mar 14, 2018 2:49 pm

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?

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: SSD1306 and frozen micropython uc

Post by pythoncoder » Thu Mar 15, 2018 10:10 am

What hardware platform are you using?
Peter Hinch
Index to my micropython libraries.

kenemon
Posts: 3
Joined: Wed Mar 14, 2018 2:34 pm

Re: SSD1306 and frozen micropython uc

Post by kenemon » Thu Mar 15, 2018 1:07 pm

it is a digi cellular modem with Built-in MicroPython support, 24KB RAM / 8KB Flash

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: SSD1306 and frozen micropython uc

Post by pythoncoder » Fri Mar 16, 2018 9:05 am

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.

kenemon
Posts: 3
Joined: Wed Mar 14, 2018 2:34 pm

Re: SSD1306 and frozen micropython uc

Post by kenemon » Fri Mar 16, 2018 12:15 pm

I understand. I was hoping to make some kind of work around where the frambebuf/driver/main were all in same script...

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: SSD1306 and frozen micropython uc

Post by pythoncoder » Sat Mar 17, 2018 6:36 am

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.
Peter Hinch
Index to my micropython libraries.

Post Reply