I purchased two Pico W.s and I.m unable to turn on the pins to light an LED or use them as an input for a switch with a pull-up resistor. I'm able to blink the onboard LED with the following code.
led = machine.Pin("LED", machine.Pin.OUT)
led.on()
What is the code if I want to turn on an LED on Pin 10, or make pin 15 an input for a switch?
I could not find "Pico W" specific documentation. I found some on GitHub but nothing from A to Z for the Pico W.
Your suggestions are appreciated.
Raspberry Pi Pico W & MicroPython
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jerryn
- Posts: 1890
- Joined: Sat Sep 14, 2013 9:05 am
Re: Raspberry Pi Pico W & MicroPython
There are some examples here https://microcontrollerslab.com/raspber ... -examples/
- neradoc
- Posts: 542
- Joined: Wed Apr 27, 2016 2:38 pm
Re: Raspberry Pi Pico W & MicroPython
And don't forget the MP reference for RP2040:
https://docs.micropython.org/en/latest/ ... ckref.html
And other references from Raspberry Pi:
https://www.raspberrypi.com/documentati ... umentation
https://docs.micropython.org/en/latest/ ... ckref.html
And other references from Raspberry Pi:
https://www.raspberrypi.com/documentati ... umentation
Please be positive and constructive with your questions and comments.