blob: 3e454af6a132c29e190dae9dcb940f8ec7352f5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#blink.py
#laesst die led1 (26) blinken
from octopus import *
import time
op=octopus_context()
octopus_init(op)
octopus_open(op)
octopus_io_init(op,26)
octopus_io_set_pin_direction_out(op,26)
while 1:
octopus_io_set_pin(op,26,1)
time.sleep(1)
octopus_io_set_pin(op,26,0)
time.sleep(1)
|