RP2350A and RP2350B differences (for Firmata) #2905
-
I'd like to ask what differences should I define between the 2 chips, to work with CustomFirmata ? The datasheet of Pico2 is 1369 pages long. I hope some help, to avoid learn all that. #define TOTAL_ANALOG_PINS 5
#define TOTAL_PINS 31 So actually read the temperature for RP2040, you have to code: int _rt = analogRead(30); // raw value, ca 820 See more details here ... I know, strange, why all the specs, Wiki page, etc write 30 total ports, when it is actually 31 ! So I guess it is the same for RP2350A.
RP2350B has 48GPIO, A0-A7 for analogue. Witch pin do I have to read to get a TEMP value for RP2350B ?(Sorry, but I do not have a board like this, so I can not test) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I think you're overthinking it a bit. To read the temperature, use the core as documented https://github.com/earlephilhower/arduino-pico/blob/master/docs/analog.rst#float-analogreadtempfloat-vref--33f For the B you just need to add the extra IO, GPIOs up to 47 and A0-A7. The temp call will adjust automatically, nothing to do on your end. |
Beta Was this translation helpful? Give feedback.
-
Please edit the board names list, and specify for each board, if it's A or B ! I know, that even the manufacturers are lazy to do that, and it takes ages to find each one, but you have already this knowledge in your code, so please share with us! Thanks you very much in name of all programmers! 🥇 |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/earlephilhower/arduino-pico/blob/master/cores/rp2040/Arduino.h - line 43 onwards. It's not supposed to be defined, based on that. |
Beta Was this translation helpful? Give feedback.
Hmmm.... now I'm officially confused, because just found at your Arduino.h file this:
So actually there IS a
PICO_RP2350B
definition already!No need to use any other complicated method 👍
And it's working fine, if I choose an other board: