Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touch #1

Open
ionciubotaru opened this issue Nov 17, 2016 · 4 comments
Open

Touch #1

ionciubotaru opened this issue Nov 17, 2016 · 4 comments

Comments

@ionciubotaru
Copy link

Please write some details about the communication between touch and ESP.
Is it I2C or SPI ?
Any information and some examples for arduino IDE lovers will be welcome :)

@davidmpye
Copy link

Some source code (or at least any info you have about the interaction between the touch IC and the ESP8285 would be very helpful indeed.)

Thanks in advance!

@przemyslawzygmunt
Copy link
Member

przemyslawzygmunt commented Nov 28, 2016 via email

@ionciubotaru
Copy link
Author

Thank you for source code.

Please confirm if is correct:
relay pin - GPIO 12 - output
led pin - GPIO 13 - output
touch pin - GPIO 0 - input pullup

Did I understand correctly ?
GPIO 0 is used for communication between touch IC and ESP, active low ?
Is it possible to put ESP in programming mode using the touch ?

@davidmpye
Copy link

This is fantastic - I now have my own Sonoff-touch code working. Thank you!

GPIO0 is indeed active low but you can't get it into programming mode via the touch (at least, I can't). I think the touch IC is too slow to boot and pull GPIO0 low before the ESP8265 has already booted.

My code is on:

https://github.com/davidmpye/Sonoff-Touch-MQTT

(Also OTA update is possible :D)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants