Fix some syntax errors

master
Valentin Ochs 2019-11-25 23:56:22 +01:00
parent 031759ff7c
commit 010215055c
1 changed files with 2 additions and 2 deletions

View File

@ -164,9 +164,9 @@ led = Pin(5, Pin.OUT)
def callback(timer):
global data, index
data[index] = utime.ticks_ms
data[index] = utime.ticks_ms()
index = (index + 1) % 32
led(!led())
led(not led())
# Run the callback once, after 100 ms
timer.init(mode = Timer.ONE_SHOT, period = 100, callback = callback)