17 lines
352 B
Python
17 lines
352 B
Python
"""
|
|
Blinks an LED on digital pin 13
|
|
in 1 second intervals
|
|
"""
|
|
|
|
from Arduino import Arduino # type: ignore [import-untyped]
|
|
import time
|
|
|
|
board = Arduino() # plugged in via USB, serial com at rate 115200
|
|
board.pinMode(13, "OUTPUT")
|
|
|
|
while True:
|
|
board.digitalWrite(13, "LOW")
|
|
time.sleep(1)
|
|
board.digitalWrite(13, "HIGH")
|
|
time.sleep(1)
|