-
-
Notifications
You must be signed in to change notification settings - Fork 214
RP2040: avoid implicit conversion from NinaPin to int #227
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
Conversation
Memory usage change @ 569ccb5
Click for full report table
Click for full report CSV
|
Memory usage change @ e87ade8
Click for full report table
Click for full report CSV
|
The CI correctly spotted that https://github.com/arduino/ArduinoCore-mbed/blob/master/libraries/Scheduler/examples/MultipleBlinks/MultipleBlinks.ino#L28-L30 cannot work on the Nano RP2040 . What about adding a guard? Or changing the declarations into defines. |
@@ -93,7 +93,8 @@ jobs: | |||
github-token: ${{ secrets.GITHUB_TOKEN }} | |||
fqbn: ${{ matrix.board.fqbn }} | |||
libraries: | | |||
- name: WiFiNINA | |||
- source-url: https://github.com/facchinm/WiFiNINA.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to get out after arduino-libraries/WiFiNINA#180 has been merged and the library released.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just cherry pick the first commit / force push it on this branch
Some sketches use a pattern like ``` int potpin = A5 ``` Since NinaPin was an enum, the implicit cast was taking place, and any subsequent call to analogRead() would not use the Nina functions. Works in conjunction with arduino-libraries/WiFiNINA#180
e87ade8
to
dcde080
Compare
Some sketches use a pattern like
Since NinaPin was an enum, the implicit cast was taking place, and any subsequent call to analogRead() would not use the Nina functions.
Works in conjunction with arduino-libraries/WiFiNINA#180