I've got 2 capacitive sensors on a custom PCB and each sensor relays to 1 pin on the ATMEGA328P.
Schematic here for those interested:
I was wondering if anyone knew of any libraries that work with 1 pin?
As I've noticed plenty with 2 pins but not so much 1 pin.
The operation of the 2 sensors is:
1 shall "turn on" on the PCB - (turns on leds one after the other and then displays some information on a OLED display)
The other will turn on an snake game which can can use the 1st sensor to change the direction of the snake.
Both sensors are to be momentary switches.
E.g. leds and oled display turn off.