- Timestamp:
- 01/26/10 15:21:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rc/puzzlebox_brainstorms_rc.py
r1 r2 25 25 ##################################################################### 26 26 27 DEBUG = 127 DEBUG = 2 28 28 29 29 BLUETOOTH_DEVICE='/dev/rfcomm0' … … 40 40 41 41 self.device=device 42 43 44 ################################################################## 45 46 def connect_to_nxt(self, device): 47 48 conn = jaraco.nxt.Connection(self.device) 49 50 if self.DEBUG > 1: 51 battery_voltage = jaraco.nxt.routine.get_voltage(conn) 52 print "Battery voltage:", 53 print battery_voltage 54 55 56 return(conn) 42 57 43 58 … … 74 89 def run(self): 75 90 76 conn = jaraco.nxt.Connection(self.device)77 #jaraco.nxt.routine.cycle_motor_a(conn)91 conn = self.connect_to_nxt(self.device) 92 78 93 self.cycle_motor(conn, 'a') 79 94
Note: See TracChangeset
for help on using the changeset viewer.