HelTec WIFI KIT 32 and MicroPython

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
modulusmath
Posts: 30
Joined: Thu Jun 30, 2022 3:21 am

Re: HelTec WIFI KIT 32 and MicroPython

Post by modulusmath » Thu Jun 30, 2022 3:41 am

I can't even tell you how much time I spent pursuing writing to a screen on an ESP* board using Micropython w/o a bread board or w/o using Arduino code (I don't know any C and I don't really don't have expertise yet in electronic circuits yet, BUT I love python and IOT seems like so much fun). Getting 'what supports' what was a bit time consuming but I think I got it now :)

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 pm
from 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 :)

Post Reply