Rev 4937 Rev 4938
Line 12... Line 12...
12   12  
13 print "Manufacturer: %s" % h.get_manufacturer_string() 13 print "Manufacturer: %s" % h.get_manufacturer_string()
14 print "Product: %s" % h.get_product_string() 14 print "Product: %s" % h.get_product_string()
15 print "Serial No: %s" % h.get_serial_number_string() 15 print "Serial No: %s" % h.get_serial_number_string()
16   16  
17 h.write([0x02, 0b00000010, 0x00, 0x00, 0x00]) # setup io pin direction 17 h.write([0x02, 0b00000110, 0x00, 0x00, 0x00]) # setup io pin direction
18 sleep( 1.00 ) 18 sleep( 1.00 )
19   19  
20   20  
21 def light(timea): 21 def light(timea):
22 h.write([0x04, 0xFF, 0xFF]) 22 h.write([0x04, 0xFF, 0xFF])