Closed DhruvaG2000 closed 2 years ago
do we have to define enum for different pinmodes as mentioned here
No, You are not atall supposed to modify any code in ArduinoCore-API.
What is required is that you implement each of
INPUT_PULLUP = 0x2,
INPUT_PULLDOWN = 0x3,
OUTPUT_OPENDRAIN = 0x4,
using an underlying zephyr code as documented here: GPIO input/output configuration flags
Thanks @szczys for solving this in PR https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core/pull/19
pinmodes
support here from zephyr GPIO API like the ones here