Comments (3)
Sorry, I don't really understand what you're trying to do here, or the problem you are seeing? The blink program
from machine import Pin, Timer
led = Pin(25, Pin.OUT)
tim = Timer()
def tick(timer):
global led
led.toggle()
tim.init(freq=2.5, mode=Timer.PERIODIC, callback=tick)
blinks the on-board LED on and off, there is nothing to input?
from pico-micropython-examples.
if i was to do something like:
`from machine import Pin, Timer
led = Pin(25, Pin.OUT)
tim = Timer()
def tick(timer):
global led
led.toggle()
input("TEST")
tim.init(freq=2.5, mode=Timer.PERIODIC, callback=tick)
`
it will return error
from pico-micropython-examples.
Hey, this sounds like a general MicroPython support question rather than a question specifically about the example code in this repo. I'm going to direct you over to the https://github.com/micropython/micropython/issues repo as the RP2040 port has now been merged into the upstream repo.
from pico-micropython-examples.
Related Issues (20)
- "__thonny_helper isn't defined" error HOT 4
- neopixel_ring.py Green led timing issue? HOT 1
- support for UART rx interrupt HOT 1
- PWM Fade additional example for NeoPixels HOT 1
- SPI master slave communication HOT 2
- Wrong kwarg names in Pico Python SDK documentation HOT 2
- pio_pinchange.py example pin change to high HOT 1
- Why can not use IRQ in a new thread? HOT 1
- blink.py doesn't work on Pico W
- require to generate frquency of 1Mhz or above by using clkout HOT 2
- Pico W i2c issues HOT 2
- Add better examples with how to interact between PIO routines and the Micropython program running HOT 3
- blink.py error HOT 2
- PIO 1Hz example off-by-one cycle
- Bluetooth examples HOT 2
- 'rp2.PIO(0).irq()' clears all IRQs HOT 1
- Possible Issue with pio/pio_spi.py HOT 1
- PWM channels HOT 1
- webserver.py NameError: name 'stateis' isn't defined HOT 1
- About pico power consumption HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-micropython-examples.