Xinyuan-LilyGO / T-Touchbar-AMOLED

7 stars 0 forks source link

Touch IC not responding with esphome #5

Open makerwolf opened 3 months ago

makerwolf commented 3 months ago

Hello, I am spending a lot of time getting this device working with esphome. My whole esp ecosystem has moved from platformio to esphome because it is so much more simple and powerful to get stuff going AND maintained. I wish you guys would also support esphome, it would make your devices much more interesting and worthwhile to work with. Honestly, this is my no. 1 reason why I stay back from your modules, because they require so much effort to get the feet off the ground.

But the topic: I'm trying to set up the touch IC in esphome, somebody posted a supposedly working config in the home assistant forums:

i2c:
  - sda: GPIO10
    scl: GPIO11

#ft6336 touchscreen
touchscreen:
  - platform: ft63x6
    interrupt_pin: GPIO12
    reset_pin: GPIO9
    id: my_touchscreen
    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
                );

however when I rund the code, there is no device responding on the i2c bus:

[15:39:20][C][i2c.arduino:071]: I2C Bus:
[15:39:20][C][i2c.arduino:072]:   SDA Pin: GPIO10
[15:39:20][C][i2c.arduino:073]:   SCL Pin: GPIO11
[15:39:20][C][i2c.arduino:074]:   Frequency: 50000 Hz
[15:39:20][C][i2c.arduino:086]:   Recovery: bus successfully recovered
[15:39:20][I][i2c.arduino:096]: Results from i2c bus scan:
[15:39:20][I][i2c.arduino:098]: Found no i2c devices!

Before I flashed basic esphome firmware the touch IC was working fine with the factory firmware, so I can confidentally rule out a hardware fault.

Are you able to replicate this issue?

lewisxhe commented 3 months ago

There is currently no example for esphome_