You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is effective when OLED suddenly lights up,
It's very strange that I suddenly get better and can use it, but it won't show up when I write the program
The text was updated successfully, but these errors were encountered:
This code was invalid the first time it was run
from machine import Pin, SPI
import sh1106
spi = SPI(1, baudrate=1000000,sck=Pin(14),mosi=Pin(13))
display = sh1106.SH1106_SPI(128, 64, spi, Pin(5), Pin(2), Pin(4),rotate= 0, delay=0)
display.reset()
display.flip(True)
display.sleep(False)
display.fill(0)
display.text('hello world', 0,0, 1)
display.rect(0, 0, 50, 50, 1)
display.show()
print("testing")
This code is effective when OLED suddenly lights up,
It's very strange that I suddenly get better and can use it, but it won't show up when I write the program
The text was updated successfully, but these errors were encountered: