Skip to content

Commit

Permalink
Merge pull request #112 from arthurlutz/patch-1
Browse files Browse the repository at this point in the history
fix: upgrade to esphome 2023.12 API
  • Loading branch information
witnessmenow authored Feb 18, 2024
2 parents c7f37e0 + 359b824 commit 8abe39a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Examples/ESPHome/4-TouchDemo/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ touchscreen:
cs_pin: GPIO33
interrupt_pin: GPIO36
update_interval: 50ms
report_interval: 1s
threshold: 400
calibration_x_min: 3860
calibration_x_max: 280
calibration_y_min: 340
calibration_y_max: 3860
swap_x_y: false
transform:
swap_xy: false
4 changes: 2 additions & 2 deletions Examples/ESPHome/6-VariousFeatures/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ touchscreen:
cs_pin: GPIO33
interrupt_pin: GPIO36
update_interval: 50ms
report_interval: 1s
threshold: 400
calibration_x_min: 3860
calibration_x_max: 280
calibration_y_min: 340
calibration_y_max: 3860
swap_x_y: true
transform:
swap_xy: true
# Calibration for the display
# on_touch:
# - lambda: |-
Expand Down
4 changes: 2 additions & 2 deletions Examples/ESPHome/7-ExtendedTouchDemo/yellowtft1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ touchscreen:
cs_pin: GPIO33
interrupt_pin: GPIO36
update_interval: 50ms
report_interval: 1s
threshold: 400
calibration_x_min: 3860
calibration_x_max: 280
calibration_y_min: 340
calibration_y_max: 3860
swap_x_y: false
transform:
swap_xy: false
# When the display is touched, turn on the backlight,
# store that we had a recent touch, and update the UI
on_touch:
Expand Down

0 comments on commit 8abe39a

Please sign in to comment.