mcu-m5core2: M5GFX SH1107 init on boot for the Unit OLED
CI / YAML lint (push) Successful in 18s
CI / ESPHome config validation (push) Successful in 1m5s

This commit is contained in:
randy committed 2026-11-05 13:32:04 +01:00
1 parent 9c20f605d2
commit 93f622f430
1 file changed
+6
+6
View File
@@ -61,6 +61,12 @@ esphome:
then:
# the m5stack component sets these in the AXP2101 layout: 4.1 V, 360 mA, end at 10 %
- lambda: id(pmu_axp)->writeRegister(0x33, 0x83);
# The SH1107 once stuck showing noise (even after a power cycle) with ESPHome's init alone;
# M5GFX's settings that ESPHome lacks or sets otherwise brought it back, kept as insurance:
# end read-modify-write, POR clock, SH1107 precharge, VCOMH, DC-DC, RAM content, on
- lambda: |-
for (uint8_t c : {0xEE, 0xD5, 0x50, 0xD9, 0x20, 0xDB, 0x35, 0xAD, 0x8B, 0xA4, 0xAF})
id(oled).write_byte(0x00, c);
- bm8563.read_time:
- lvgl.page.show: {id: status_page, lvgl_id: lvgl_main}