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

MicroPython • Re: Game system load/save errors

$
0
0
Well, something bad happened:

Code:

MPY: soft rebootTraceback (most recent call last):  File "<stdin>", line 7, in <module>  File "ssd1306.py", line 112, in __init__  File "ssd1306.py", line 49, in __init__  File "ssd1306.py", line 74, in init_display  File "ssd1306.py", line 117, in write_cmdOSError: [Errno 5] EIO
I got that from this test code:

Code:

from machine import Pin, I2Cfrom ssd1306 import SSD1306_I2Cimport timeWIDTH =128 HEIGHT= 64i2c=I2C(0,sda=Pin(4), scl=Pin(5), freq=400000)oled = SSD1306_I2C(128, 64, i2c)oled.fill(0)   oled.text('Nubs', 0, 0)oled.rect (50,35,10,10,1)oled.rect (50,45,5,10,1)oled.rect (55,45,5,10,1)oled.rect (65,40,5,5,1)oled.rect (40,40,5,5,1)oled.hline (50,22,10,1)oled.vline (49,23,10,1)oled.vline (60,23,10,1)oled.hline (50,33,10,1)oled.rect (52,28,2,2,1)oled.rect (56,28,2,2,1)oled.show()

That's nothing to do with your original problem. so I have two suggestions:
  1. Open a new thread. You'll likely get more people to look at the problem than you will in this thread.
  2. Check the documentation for the library you're using.
  3. Check the micro python documentation to fin out what OSError: [Errno 5] EIO actually means..
  4. Check you code is using the library correctly
  5. Ask the author/provider of the library for help
OK, that was five suggestions...

And did you sort out the original problem in this thread?

Statistics: Posted by thagrol — Thu May 21, 2026 11:40 pm



Viewing all articles
Browse latest Browse all 7747

Latest Images

Trending Articles



Latest Images