Skip to content

Commit

Permalink
examples: Blink LED on GPIO 13
Browse files Browse the repository at this point in the history
Most arduino boards have an LED here

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Mar 24, 2019
1 parent a0c03e5 commit a76b7f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/blink.py
Expand Up @@ -12,15 +12,17 @@
# General Public License for more details.
#

led = 3
led = 13

def up():
for i in range(0,1,0.001):
setpower(i)
sleep(0.001)

def down():
for i in range(1,0,-0.001):
setpower(i)
sleep(0.001)

def blink():
talkto(led)
Expand Down

0 comments on commit a76b7f0

Please sign in to comment.