Define a gpio for input (or output) only ? #6752
Unanswered
espruino-discuss
asked this question in
Porting to new Devices
Replies: 1 comment
-
Posted at 2017-01-19 by @gfwilliams I'm afraid not - throwing exceptions from within jshPinSetState could be a bit awkward as well. It might be better just to ignore it :S You can at least define 'notes' next to the pins in BOARD.py so that the Pin diagram mentions that there's an issue (check the Pico for an example) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-19 by JumJum
Is it possible to restrict a GPIO in board.py to support input (or output) only ?
Some of ESP32 GPIO's support only one direction.
Optional we could check this in jshardware.c.
Beta Was this translation helpful? Give feedback.
All reactions