1import sh1106
2import utime
3from driver import SPI
4from driver import GPIO
5
6spi0 = SPI()
7spi0.open("SPI1")
8
9gpio_dc = GPIO()
10gpio_dc.open("oled_dc")
11
12gpio_res = GPIO()
13gpio_res.open("oled_res")
14
15display = sh1106.SH1106_SPI(width=132, height=64, spi=spi0, dc = gpio_dc, res = gpio_res)
16# display.init_display()
17display.fill(1)
18display.show()
19# display.test()