earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
1.96k stars 406 forks source link

Expand documentation to clarify pin notation and Servo usage #2326

Closed AIWintermuteAI closed 1 week ago

AIWintermuteAI commented 1 month ago

It is not explained anywhere that unlike official Arduino mbed cores, you need to prepend D before number for digital pins. Another rather large difference is that servo PWM ranges are set very conservatively according to https://github.com/earlephilhower/arduino-pico/issues/776.

I think this can be two common gotchas for people trying to port their code from Arduino mbed nano core, so perhaps worth adding them to the docs.

AIWintermuteAI commented 1 week ago

Ooops. Sorry, got too busy with my main work recently. I can still address the comments and get the PR ready, if you want.

earlephilhower commented 1 week ago

Sure, if you're up for it!