“Circuitpython HID emulator device with smart home functions
Handy clicker is raspberry pi pico based device with additional keyboard for fpv cameras.
How does it work?
OSD camerea pilot on circuitboard got different resistors combined with buttons. So if you push “UP” button there occour e.g. 6000 m ohm when down e.g 2000 m ohm.
I connected keyboard to pico pin’s no 26 which is used to read analog values. After that I measured all values corresponding to each button and save results.
Remember when want read analog values must add additional resistor.
Using python API tuyapy it’s possible to controll sonoff devices like power switch connected with night lamp.”