Open pauloantuns opened 10 months ago
Is GPIO27 available? According to https://github.com/milkv-duo/accessories/blob/master/Duo_USB%26Ethernet_IOB/duo_iob_v1.11.pdf (sheet 2) the IOB puts a pullup on it... I think the intention is that a pushbutton can optionally enable a network interface on USB even if the default is Ethernet.
Hi @MarkMLl ! Yes, GPIO 27 is available. I was able to find a solution to use the ADC module on the board and subimitted to merge. Check the github examples page: https://github.com/milkv-duo/duo-examples/tree/main/adc
https://community.milkv.io/t/solved-does-duo-have-an-analog-read-function-from-the-gpio/1207
The only "analogRead" function that i found on wiringx.h it's commented. (// int analogRead ... ) in duo-sdk/rootfs/usr/include/wiringx.h
There's any method to read analog data with the currently firmware version? From the Duo Datasheet we can see the ADC pins.