Skip to content

blink.py error #53

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

Open
Rudra076 opened this issue Dec 12, 2022 · 2 comments
Open

blink.py error #53

Rudra076 opened this issue Dec 12, 2022 · 2 comments

Comments

@Rudra076
Copy link

Traceback (most recent call last):
File "", line 3, in
TypeError: can't convert str to int

I am using thonny to code and this error is showing up in the shell when I click run current script

@lurch
Copy link
Contributor

lurch commented Dec 12, 2022

Questions about MicroPython are best asked at https://github.com/orgs/micropython/discussions

@lurch
Copy link
Contributor

lurch commented Feb 28, 2023

Looking at this again, line 3 of https://github.com/raspberrypi/pico-micropython-examples/blob/master/blink/blink.py says

led = Pin("LED", Pin.OUT)

so I suspect you may simply be using an older version of MicroPython. If you use the latest version from https://www.raspberrypi.com/documentation/microcontrollers/micropython.html#drag-and-drop-micropython that should fix your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants