M5Stack CoreInk display (gdew0154m09) external component for ESPHome
The easiest way to utilize the component is to use the external components feature:
external_components:
- source:
type: git
url: https://github.com/witasekl/gdew0154m09
ref: master
The component uses the SPI bus component and hence it requires the following pins to be defined:
- CLK / SCK: GPIO18 for M5Stack CoreInk
- MOSI / DIN: GPIO23 for M5Stack CoreInk
Besides from that the component itself requires the following pins:
- CS (chip select): GPIO9 for M5Stack CoreInk
- D/C (data / command): GPIO15 for M5Stack CoreInk
- BUSY: GPIO4 for M5Stack CoreInk
- RESET: GPIO0 for M5Stack CoreInk
Optionally you can also define the update interval (update_interval
) for the component, but it's not recommended to use lower interval than 15s, because this could damage the display. The default value is 60s:
display:
- platform: gdew0154m09
update_interval: 60s
external_components:
- source:
type: git
url: https://github.com/witasekl/gdew0154m09
ref: master
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
display:
- platform: gdew0154m09
cs_pin: GPIO9
dc_pin: GPIO15
busy_pin: GPIO4
reset_pin: GPIO0
lambda: |-
it.filled_circle(100, 100, 80);