Skip to content
marcvl64 edited this page Jan 22, 2022 · 12 revisions
  # Update Display switch
  switch:  
    - platform: template
      name: Update TFT display
      id: tft_update
      turn_on_action:
        - delay: 16ms
        - lambda: 'id(disp1).upload_tft();'
        - switch.turn_off: tft_update
The crucial piece here is the 16ms delay that forces asynchronous action.
Clone this wiki locally