mirror of
https://github.com/OMGeeky/homecontrol.esp-sensors.git
synced 2026-01-21 18:08:45 +01:00
add display initialization log to oled_display.py
This commit is contained in:
@@ -100,6 +100,7 @@ class OLEDDisplay(Sensor):
|
||||
# print('i2c scan:', i2c.scan())
|
||||
print(f" I2C address: {self.address}")
|
||||
self._display = ssd1306.SSD1306_I2C(self.width, self.height, i2c, addr=self.address)
|
||||
print(f" Display initialized: {self._display}")
|
||||
self._display.fill(0) # Clear the display
|
||||
self._display.text("Initialized", 0, 0, 1)
|
||||
self._display.show()
|
||||
|
||||
Reference in New Issue
Block a user