One regular blog reader turned to chatGPT with my problem stated in yesterday's blog. The answer was in the form if you were using Micro-Python or regular Python for coding. Indeed, the pin designations were different from what I had posted. I thought this is the answer. Well sadly none of that compiled in the Arduino IDE. But the exercise convinced me that indeed there has to be something different in the way the pins are named.
The ever-curious blog readers would ask -- why does the built in LED code work? In fact, the often-used example in how to code the Pi Pico is the Miyagi LED ON LED OFF tutorial. If that works making a Pin HIGH should work. One possible and likely THE reason -- the built in LED IS NOT a Pin on the Pi Pico and therefore no Pin is specified in the code.
This cannot be this hard. Perhaps another run at chatGPT only specifying only show code that can be used in the Arduino IDE. It all comes down to asking the right question to the problem at hand.
Well, I made a run using co-pilot and this is another answer. This is a blinking LED example using an external LED and there is a clue in the define statement which designates the GPIO Pin, Thank you AI. I loaded the code and that worked!
If you know you then you can make it go.
73's
Pete N6QW
PS: The photo is of nothing special just there; otherwise blog readers will pan any posting without a photo. Initially I had selected a photo of Ann Margaret on a Motorcycle and then realized she is my age, and most blog readers would not understand the selection.