update
This commit is contained in:
1 parent
eac9d5d376
commit
849e5f8d3e
2 files changed
+5
-3
No files matched your search
@@ -0,0 +1,2 @@
|
||||
import inc/robot-inc
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python2
|
||||
import RPi.GPIO as GPIO
|
||||
import time
|
||||
|
||||
@@ -17,9 +17,9 @@ myLED=22
|
||||
GPIO.setup(myLED, GPIO.OUT)
|
||||
while True:
|
||||
GPIO.output(myLED,True)
|
||||
print ('. on . ',myLED)
|
||||
print '. on . ',myLED
|
||||
time.sleep(2)
|
||||
GPIO.output(myLED,False)
|
||||
print ('**off**',myLED)
|
||||
print '**off**',myLED
|
||||
time.sleep(2)
|
||||
|
||||
Reference in new issue
Block a user