Arduino Portenta - problem to define digital output pin #16319
-
I use micropython via OpenMV on Arduino Portenta. I cannot define pin for external diode (built in diodes works ok). The code is as follows: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Please format your code as described here. If you're using OpenMV firmware you might be best targetting the query at them. My guess at the source of the error is that their pin numbering convention is to use a string rather than an integer (when instantiating the |
Beta Was this translation helpful? Give feedback.
-
Thanks for fast response. It works now. Actually the problem was related to conversion between int and str. In my case the notation str('PH7') solved the problem. |
Beta Was this translation helpful? Give feedback.
Please format your code as described here.
If you're using OpenMV firmware you might be best targetting the query at them. My guess at the source of the error is that their pin numbering convention is to use a string rather than an integer (when instantiating the
Pin
).