ax42 / gdew0154m09

M5Stack CoreInk display (gdew0154m09) external component for ESPHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M5Stack CoreInk display component for ESPHome

M5Stack CoreInk display (gdew0154m09) external component for ESPHome

Configuration

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

Example

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);

References

About

M5Stack CoreInk display (gdew0154m09) external component for ESPHome

License:MIT License


Languages

Language:C++ 76.5%Language:Python 23.5%