I purchased an "ESP32 OLED Display, ESP-32 BT Wi F i Kit 32 + 0.96 inch OLED Display 8MB Flash CP2102 Development Board for Arduin ESP8266 NodeMCU" from Amzn (company is aideepen). "Heltec htit-wb32" is written on the back.
After copying ssd1306 to the esp32 and using your code, I can write to the screen. Hooray!
I hope the above helps someone else googling...Thank you!!!
db4linq wrote: ↑Wed Nov 08, 2017 1:24 pmfrom machine import I2C, Pin
import ssd1306
rst = Pin(16, Pin.OUT)
rst.value(1)
scl = Pin(15, Pin.OUT, Pin.PULL_UP)
sda = Pin(4, Pin.OUT, Pin.PULL_UP)
i2c = I2C(scl=scl, sda=sda, freq=450000)
oled = ssd1306.SSD1306_I2C(128, 64, i2c, addr=0x3c)
oled.fill(0)
oled.text('ESP32', 45, 5)
oled.text('MicroPython', 20, 20)
oled.show()
work for me