-
Notifications
You must be signed in to change notification settings - Fork 72
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
Extend BoardSupport.md #118
Conversation
Other modules can use this byte.
319f8b7
to
9c015df
Compare
The RP2040 is supported by ConfigurableFirmata v2.11 or later. | ||
|
||
| Property | Value (Logical pin numbers) | | ||
| ----------- | ------------------------------------ | | ||
| Number of Pins | 30 | | ||
| Number of analog inputs | 4 | | ||
| Flash Memory | 2Mb | | ||
| RAM | 264kb | | ||
| PWM capable pins | 16 | | ||
| Built-in LED | Yes, pin 25 | | ||
| I2C, Bus 0 | Pin 6 SDA, Pin 7 SCL | | ||
| I2C, Bus 1 | Not currently supported by ConfigurableFirmata | | ||
| SPI, Bus 0 | Pin 16 MISO, Pin 17 CS, Pin 18 SCK, Pin 19 MOSI | | ||
| SPI, Bus 1 | Not currently supported by ConfigurableFirmata | | ||
|
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.
@mattjlewis Can you confirm the above is correct for the current implementation? I have created similar tables for a several boards now.
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.
According to https://datasheets.raspberrypi.org/pico/Pico-R3-A4-Pinout.pdf and Google.
By "Logical pin numbers" I assume you are referring to "Physical pin numbers".
Number of analog inputs: 3 (the board itself has 4 - 3 are exposed on physical pins 31, 32 & 34, one is used for the internal temperature sensor hence not exposed). Note they are 12-bit resolution.
PWM capable pins - PWM is possible on all 26 GPIOs, can have 16 PWM channels at any one time.
Not sure about the SPI pins. Looking at pins_arduino.h, SPI is MISO: GP4 (physical 6), MOSI: GP3 (physical 5), SCK: GP2 (physical 4), CS: GP5 (physical 7).
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.
Also the Mbed OS tooling defaults Serial to TX: GP0 (physical 1), RX: GP1 (physical 2).
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.
No, I meant "logical pin numbers" (the GPXX numbers). You wrote that I2C-0 is on GP6 and GP7 (which is actually weird, because these pins are only for I2C-1, according to the pinout).
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.
Apologies, I should have spotted that. I have no idea what the mbed folks were thinking ignoring default values and using I2C-1. The Wire
and Wire1
attributes within the mbed toolchain do not have to correlate with the physical I2C bus numbers, Wire1
can be I2C-0.
No description provided.