Skip to content

Instantly share code, notes, and snippets.

Created Jan 30, 2018

What would you like to do?
Simple Python program to flash onboard LED of Arduino UNO. Requires pyfirmata.

This comment has been minimized.

Copy link

brun0eduard0 commented Jun 25, 2019

from pyfirmata import Arduino, util
import time

board = Arduino("COM3")
//board = Arduino("/dev/ttyACM0")

loopTimes = input('How many times would you like the LED to blink: ')
print("Blinking %d times.", loopTimes)

for x in range(int(loopTimes)):[13].write(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.