Page 1 of 1

Pi PICO - Reading Internal Pins and ADC pins

Posted: Thu Feb 08, 2024 11:41 am
by jay_dee
Hi FC Team,
A) I have been playing with the Pi PICO for a short time and i'm aware some PICO pins are internal but non the less, are in theory readable
GP25 - Pico LED - Is this controllable? Pin A.25 not selectable.
GP24 - USB Detect - Is this readable? Pin A.24 not selectable.
GP29 - VSYS/3 Monitor - Is this readable? Pin A.24 not selectable.
ADC4 is the internal temp Sensor, can this be read?

B) ADC Pins
What is the Best component to read the native ADC pins? using the raw ADC(cal) component?
Thanks, John.

Re: Pi PICO - Reading Internal Pins and ADC pins

Posted: Thu Feb 08, 2024 12:17 pm
by Steve-Matrix
I'll attempt to answer these backwards.

B) I would use a 2d Potentiometer component to read ADC pins.

A) I don't know, but you should be able to use C code to access these.

For example, if you have a byte variable "x", then you could try the following in a C code icon to read GP24 and write GP25:

Code: Select all

FCV_X = GET_PORT_PIN(A,24);
SET_PORT_PIN(A,25,(FCV_X));
There will be a way to use C code directly to access ADC4, but I've not been able to quickly work out a way to do this.

Re: Pi PICO - Reading Internal Pins and ADC pins

Posted: Thu Feb 08, 2024 12:19 pm
by chipfryer27
Hi

The Pico quickly grew on me. Really like it.

This post explains how to use the LED and also second core.

viewtopic.php?f=3&t=2065&hilit=pico&start=20

Regards