Let me start off by saying im new to MicroPython so please pardon any noobie-ness. I am trying to read values from a bno055 IMU (9DOF) sensor and display them on the built in ssd1306 OLED on my Heltec ESP32 (non-lora model).
Heres my question:
It appears that to print text on the ssd1306 I need to init i2c via:
Code: Select all
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)
Code: Select all
import bno055
from machine import I2C, Pin
i2c = I2C(-1, Pin(22), Pin(21))