---
touchscreen:
  platform: gt911
  i2c_id: ${touch_bus}
  id: gt911_touchscreen
  interrupt_pin: ${touch_irq}
  on_touch:
    - then:
      - logger.log:
          format: Touch at (%d, %d)
          args: [touch.x, touch.y]
      - light.turn_on: led
      - delay: 5s
      - light.turn_off: led