avdwebLibraries / avdweb_Switch

Switch library with longPress and doubleClick
http://www.avdweb.nl/arduino/hardware-interfacing/simple-switch-debouncer.html
GNU General Public License v3.0
45 stars 16 forks source link

Add esp compatibility #3

Closed Martin-Laclaustra closed 6 years ago

Martin-Laclaustra commented 6 years ago

With these changes the library can work for ESP8266. Tested and working with a NodeMCU ESP8266 and checked that the example still works with Arduino UNO.

avandalen commented 6 years ago

Dear Martin Thank you for your contribution.

avandalen commented 6 years ago

I see this: Conflicting files Examples/Test_switch/Test_switch.ino

avandalen commented 6 years ago

Hi Martin

Im not so familair with GitHub, so when I did things wrong, please let me know.

Albert

From: Martin-Laclaustra Sent: Wednesday, July 18, 2018 12:48 AM To: avandalen/avdweb_Switch Cc: Subscribed Subject: [avandalen/avdweb_Switch] Add esp compatibility (#3)

With these changes the library can work for ESP8266. Tested and working with a NodeMCU ESP8266 and checked that the example still works with Arduino UNO.


You can view, comment on, or merge this pull request online at: https://github.com/avandalen/avdweb_Switch/pull/3

Commit Summary a.. Add ESP architectures to library.properties b.. Replace in the example GPIOs 6 and 8 by 2 and 12 c.. Replace in the example GPIO 3 by 13 File Changes a.. M Examples/Test_switch/Test_switch.ino (60) b.. M library.properties (2) Patch Links: a.. https://github.com/avandalen/avdweb_Switch/pull/3.patch b.. https://github.com/avandalen/avdweb_Switch/pull/3.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.