added main.py and some informations

This commit is contained in:
Numb-0 2026-03-25 11:00:51 +01:00
parent fd6e9772f2
commit b9104e58a3
2 changed files with 12 additions and 1 deletions

View file

@ -1 +1,2 @@
Questo e il file di test usa nix-shell rshell per upload file con `cp main.py /pyboard`
per invece usare lo shell di micropython nix-shell minicom

10
main.py Normal file
View file

@ -0,0 +1,10 @@
from machine import Pin, Timer
led = Pin("LED", Pin.OUT)
tim = Timer()
def tick(timer):
global led
led.toggle()
tim.init(freq=2.5, mode=Timer.PERIODIC, callback=tick)