from machine import Pin, I2C
import ssd1306
# ESP32 Pin assignment
i2c1 = I2C(0, scl=Pin(22), sda=Pin(21))#0代表第几块显示屏
i2c2 = I2C(1, scl=Pin(33), sda=Pin(25))
oled_width = 128
oled_height = 64
oled1 = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c1)
oled2 = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c2)
oled1.text('111111', 10 , 10)
oled1.show()
oled2.text('111111', 10 , 10)
oled2.show()