Analog IN problems?

Why do I keep getting;
[2] 15 SetPin GP28,AIN
Error : Invalid configuration

this line used to work perfectly before on 6.02?
Im using a Pimoroni Pico 2 plus @ 256MHz PSRAM enabled on both machines, but In my Picocalc it doesnt work, and it Did work with the original rp2040 that came with it as well.

my Option list is:

option list
PicoMite MMBasic RP2350B Edition V6.00.03
OPTION SERIAL CONSOLE COM1,GP0,GP1
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP6,GP7, SLOW
OPTION FLASH SIZE 16777216
OPTION COLOURCODE ON
OPTION DEFAULT COLOURS GREEN, BLACK
OPTION KEYBOARD I2C
OPTION PICO OFF
OPTION CPUSPEED (KHz) 256000
OPTION LCDPANEL CONSOLE , FF00
OPTION DISPLAY 26, 40
OPTION LCDPANEL ST7796SP, PORTRAIT,GP14,GP15,GP13,INVERT
OPTION SDCARD GP17, GP18, GP19, GP16
OPTION AUDIO GP26,GP27’, ON PWM CHANNEL 5
OPTION PLATFORM PicoCalc
OPTION PSRAM PIN GP47
————————————————————
Also Im not using any bootloaders, I have the Picocalc picomite UF2 burned directly to the Pico and use the SD card only for saving .bas files, otherwise its completely empty.
Any ideas why I can`t set pin GP28 as an analog IN pin?

Analog channels rp2350b are on gp40-gp47. Just the way the RP2350B is wired.

Thanks, Yeah I`m just about to try GP42 in my program, according to the Pimoroni schematics it seems 42 is the pin I need.

An issue with the Pimoroni boards ?. Just tried setpin gp28,ain on my 2350a Pico2 without issue. For comparison setpin gp30,ain gives ‘invalid GPIO’ as expected.

Im not exactly sure what theyve done, if you look at the lower half of the chip on page one here: https://cdn.shopify.com/s/files/1/0174/1800/files/Pimoroni_Pico_Plus_2_Schematic.pdf?v=1724926880
theres 3x ADC pins all with a 1k resistor each that then get relabeled to GP 27,27 and 28.
Their original designation as ADC pins are; GP 40,41 and 42 respectively.

The chip Does have a legitimate pin GP28 as well, so I have no idea what theyve done? are 2 different GPIOs serving the same physical pin with 1k resistors as protection maybe? ¯\_(ツ)_/¯

They needed to take into account of the differences between the RP2350A and the RP2350B to maintain the pinout of the Pico board.

Since GPIO40 is now directly connected to GPIO26 the resistors are there to prevent damage if you do something foolish with those pins.

Yeah, Ill have to do 2 versions of the code when/if I release it. Its good to know though.

Thanks for the confirmation guys! :+1: