Git Product home page Git Product logo

Comments (3)

aallan avatar aallan commented on June 30, 2024

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.

Tank1334 avatar Tank1334 commented on June 30, 2024

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.

aallan avatar aallan commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.