Touch pin functionality
-
Hi,
What is the status and plan for the touch functionality? On the pin out it says to attach a 10 nF cap to enable the touch pin function, but I can't find any documentation on this anywhere. The only thing I can find in the Forum is someone saying that this is NOT possible (if so; why is it on the pin out?)
Anyone with any experience?
-
Bump.
Second vote for importing what's already in the mainline tree: https://github.com/micropython/micropython/blob/v1.9.4/ports/esp32/machine_touchpad.c
(it must be quite a lot of work for Pycom to maintain their own fork of MicroPython.. not to mention how the MicroPython world is starting to get a bit fragmented with all the forks now)
-
Hi pycom people,
What is the current status with the touch sensing?
Would it be a big job to bring in the changes from here:
https://github.com/micropython/micropython-esp32/compare/master...nickzoic:esp32-touchpad-Miika
-
@mahe
Fixed :)
-
@jmarcelino Thanks, I'll try to look in to it.. Your 2nd links is not working though. :)
-
@mahe
There isn’t an easy guide yet but essentialy you can grab the C source code from https://github.com/pycom/pycom-micropython-sigfox and change it to suit you needs.Look into https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/README.md to find out how to build the firmware with your changes.
If you look in the esp32/mods folder you can see how modules you use are implemented.
-
@seb Thanks! Sorry if I missed it, but is there any documentation on how to program the modules in C? As I understand it, I can use both my MicroPython modules and C in combination right ?
As you can probably sense I am not a hardcore coder, so I need to start a bit from scratch. :)
Thanks!
-
@mahe Apologies about the delayed response. I'm afraid this functionality of the ESP32 has not yet been exposed in micropython. It's on our to-do list but I can't promise a date when it will be available. You can access the capacitive touch functionality if you program the modules directly in C though.
I hope this answers your query,
Seb
-
No one from Pycom with a comment on this?