Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4881

MicroPython • Re: 2 OLEDs on pico 2w 2040

$
0
0
IMHO it should be possible to use both I2C channels for these display independently. Generally no need to have both display on one I2C channel.

It could be other reasons for this failure.
I would check each of the display independent for full functionality (on its dedicated I2C channel); have some pixel show up or display text.
Although pico2 has plenty of memory, check memory consumption for one of the display. Could be there is 'much' memory consumed on the driver and two of them won't get all needed resources.
Try to keep program running after the last statement of the program snippet (sleep statement in a loop) to check if the error is related to last statement or end of program condition.
Current consumption could be an issue, see https://bitbanksoftware.blogspot.com/20 ... s-use.html and having both display active drives the onboard 3.3V regulator of pico to the edge.
if i comment out the first OLED, 'oled', and the code the concerns that, it's still giving an error about that one variable assignment.
Strange, if all variable (declaration, usage) of one display are commented there should be no error message about such variable names. These simply 'not exist' anymore...

Looking for this MPY; soft reboot, there I find some remarks like
- https://stackoverflow.com/questions/765 ... he-pi-pico
- viewtopic.php?t=368565

How do you run your code, is it a 'main.py' file or another file name ?
As already mentioned, do you use appropriate micropython version for your pico2? And latest version?

Statistics: Posted by ghp — Sun Jan 26, 2025 11:04 pm



Viewing all articles
Browse latest Browse all 4881

Trending Articles