update
This commit is contained in:
1 parent
2dea0b13e9
commit
3f70d2df53
1 file changed
+4
-4
+4
-4
@@ -5,8 +5,8 @@ import time
|
|||||||
phy_led = [8, 10, 12, 16, 18, 22, 24, 26, 32, 36, 38, 40,
|
phy_led = [8, 10, 12, 16, 18, 22, 24, 26, 32, 36, 38, 40,
|
||||||
37, 35, 33, 31, 29, 23, 21, 19, 15, 13, 11, 7, 5, 3];
|
37, 35, 33, 31, 29, 23, 21, 19, 15, 13, 11, 7, 5, 3];
|
||||||
|
|
||||||
print 'Pi Board Information'
|
print ('Pi Board Information')
|
||||||
print '---------------------'
|
print ('---------------------')
|
||||||
#for key,val in GPIO.RPI_INFO.items():
|
#for key,val in GPIO.RPI_INFO.items():
|
||||||
# print '%s => %s'%(key,val)
|
# print '%s => %s'%(key,val)
|
||||||
#response = raw_input('\nIs this board info correct (y/n) ? ').upper()
|
#response = raw_input('\nIs this board info correct (y/n) ? ').upper()
|
||||||
@@ -17,9 +17,9 @@ myLED=22
|
|||||||
GPIO.setup(myLED, GPIO.OUT)
|
GPIO.setup(myLED, GPIO.OUT)
|
||||||
while True:
|
while True:
|
||||||
GPIO.output(myLED,True)
|
GPIO.output(myLED,True)
|
||||||
print 'on ',myLED
|
print ('. on . ',myLED)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
GPIO.output(myLED,False)
|
GPIO.output(myLED,False)
|
||||||
print 'off',myLED
|
print ('**off**',myLED)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
Reference in new issue
Block a user