from ssd1306 import SSD1306_I2C from machine import Pin, I2C from time import sleep i2c = I2C(0, scl=Pin(5), sda=Pin(4), freq=200000)#Grove - OLED oled 0.96" (SSD1315) oled = SSD1306_I2C(128, 64, i2c) while True: oled.fill(0)#clear oled.text("Hello,World!",0,0) oled.show() sleep(2) oled.fill(0) oled.fill_rect(0, 0, 32, 32, 1) oled.fill_rect(2, 2, 28, 28, 0) oled.vline(9, 8, 22, 1) oled.vline(16, 2, 22, 1) oled.vline(23, 8, 22, 1) oled.fill_rect(26, 24, 2, 4, 1) oled.text('MicroPython', 40, 0, 1) oled.text('SSD1306', 40, 12, 1) oled.text('OLED 128x64', 40, 24, 1) oled.show() sleep(3) oled.fill(0)