-
Notifications
You must be signed in to change notification settings - Fork 506
add "#define PICO_RP2350B 1" since this board is based on RP2350B #2445
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
add "#define PICO_RP2350B 1" since this board is based on RP2350B #2445
Conversation
Ah, did not know the existing board was B based.
Yes, they do need to be at 40+. On the -B variant the 8 inputs to the ADC come from GPIOs 40...47. It's hardwired that way and trying to |
Yup, the pretty colored image is wrong. Schematic shows the A0...3 pins on the right spor (40+): https://cdn.shopify.com/s/files/1/0174/1800/files/Pimoroni_Pico_Plus_2_Schematic.pdf?v=1724926880 |
Okay, but whats about the GP on the right? I'm not so good at reading schematics. |
Something like |
Okay. Should I define A3 as |
I'd say no because it's not pinned to a PCB pin, is it? |
Okay, so which would be best? There is no fourth analog pin on this board. |
In my first pull request I had to define A3, because otherwise the build failed. |
Yeah, the problem is whoever wrote the original file didn't use the defaults in Are you sure you need an A3 to build? The 4.0.1 core still expected Worst case, define |
I have to admit I wrote the original file ;) |
No worries. At this point it's a mismash in |
Okay, I commited my changes. Thank you for your time (: |
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.
Thx!
Apologies if I'm looking at this wrong, but that seems to say static const uint8_t A0 = (26u); and the schematic linked to above shows the ADC0-2 pins as GP40-42 with each one wired to the corresponding one of GP26-28 via a 1k resistor, with GPIO43/ADC3 wired to VSYS_SENSE, with no resistor. The way I read that is that you have to have the four ADCs defined as GP40-43, and to use ADC0-2 you'd need to disable the corresponding one of GP26-GP28 so they're not fighting over what the header pin does via the resistor that connects them. |
I see. I was looking at the wrong file for the changed pins, and it now says static const uint8_t A0 = (40u); So I guess the trick is just to not use pinMode() on the GP26-GP28 pin corresponding to an ADC that's used. |
…" (earlephilhower#2445) This reverts commit 5592322.
I think adding "#define PICO_RP2350B 1" is correct, but I'm not sure if the analog pins have to start at 40 and if I have to change other things besides adding "#define PICO_RP2350B 1". Have a look at ppico_plus_2_pinout_diagram.pdf.