test.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 import bluetooth
00003 import struct
00004 import time
00005 from sphero_driver import sphero_driver
00006 import sys
00007 sphero = sphero_driver.Sphero()
00008 sphero.connect()
00009 sphero.set_raw_data_strm(40, 1 , 0, False)
00010 
00011 sphero.start()
00012 time.sleep(2)
00013 sphero.set_rgb_led(255,0,0,0,False)
00014 time.sleep(1)
00015 sphero.set_rgb_led(0,255,0,0,False)
00016 time.sleep(1)
00017 sphero.set_rgb_led(0,0,255,0,False)
00018 time.sleep(3)
00019 sphero.join()
00020 sphero.disconnect()
00021 sys.exit(1)
00022 
00023 
00024 


sphero_driver
Author(s): Melonee Wise
autogenerated on Mon Oct 6 2014 07:45:28