Closed AkshatChauhan18 closed 1 year ago
Please show me your hardware_setup.py
.
I am using ssd1306 oled display therefore i used this code for hardware_setup.py
from machine import Pin, SoftI2C
import gc
from drivers.ssd1306.ssd1306 import SSD1306_I2C as SSD
i2c = SoftI2C(scl=Pin(22), sda=Pin(21))
oled_width = 128
oled_height = 64
gc.collect() # Precaution before instantiating framebuf
ssd = SSD(oled_width, oled_height, i2c)
Your setup file appears to be designed for nanogui
.
In microgui
you need to define your control buttons and create a display
object. Please study the docs and the microgui
setup examples.
Closing due to inactivity.
while running this code I am getting an error:
Traceback (most recent call last): File "", line 38, in
File "", line 36, in test
File "gui/core/ugui.py", line 328, in change
File "", line 22, in init
File "gui/core/ugui.py", line 420, in init
AttributeError: 'NoneType' object has no attribute 'height'