-
Notifications
You must be signed in to change notification settings - Fork 1k
Extend GPIO mode #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @fpistm ,
IMHO: only INPUT_PULLDOWN makes sense. |
I think no, it will not make core incompatible this is just an extension. Default Arduino value are kept. |
What is different between |
I think add one more |
Right. where STM_PIN_DATA is used to get pin configuration coded on 32 bits:
|
Fix stm32duino#275 Signed-off-by: Frederic.Pillon <[email protected]>
Fix stm32duino#275 Signed-off-by: Frederic.Pillon <[email protected]>
Fix stm32duino#275 Signed-off-by: Frederic.Pillon <[email protected]>
Fix stm32duino#275 Signed-off-by: Frederic.Pillon <[email protected]>
Fix stm32duino#275 Signed-off-by: Frederic.Pillon <[email protected]>
Current mode available using pinMode() are:
INPUT
INPUT_PULLUP
INPUT_PULLDOWN
OUTPUT
Some other mode could be added as done in Arduino_STM32
At least:
INPUT_ANALOG
INPUT_FLOATING
same asINPUT
OUTPUT_OPEN_DRAIN
Maybe AF mode.The text was updated successfully, but these errors were encountered: