Skip to content

Commit

Permalink
Untested calibrations
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegordon committed Dec 3, 2024
1 parent 270bdbd commit 530e701
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions esphome/ili9341_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,19 @@ touchscreen:
id: toucharea
cs_pin: GPIO12
interrupt_pin: GPIO16
# on_touch:
# - lambda: |-
# ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%d",
# id(toucharea).x,
# id(toucharea).y,
# id(toucharea).x_raw,
# id(toucharea).y_raw
# );
calibration:
x_min: 0
x_max: 240
y_min: 0
y_max: 320
on_touch:
- lambda: |-
ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%0d",
touch.x,
touch.y,
touch.x_raw,
touch.y_raw
);
display:
- id: my_display
Expand Down

0 comments on commit 530e701

Please sign in to comment.