So beheben

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: So beheben

by Anonymous » 23 Feb 2025, 17:50

Mein Code wird mit Raspberry Pi Pico und OLED (SSD1306) erstellt und es ist wie folgt:

Code: Select all

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import framebuf
width = 128
height = 64
i2c = I2C(1, scl=Pin(15), sda=Pin(14), freq=400000)
oled = SSD1306_I2C(width, height, i2c)
oled.fill(0)
oled.text("Hola perro", 5, 8)
oled.text("2022", 5, 18)
oled.show()
< /code>
und Fehler: < /p>
Traceback (most recent call last):
File "", line 12, in 
File "ssd1306.py", line 118, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 74, in init_display
File "ssd1306.py", line 123, in write_cmd
OSError: [Errno 110] ETIMEDOUT
Und wenn ich Print (i2c.scan ()) zu meinem Programm hinzufüge, zeigt es mir Folgendes:

Code: Select all

>>> print(i2c.scan())
[]

Top