Changeset 228


Ignore:
Timestamp:
12/01/10 02:01:05 (10 years ago)
Author:
sc
Message:

trunk/brainstorms/Puzzlebox/Brainstorms/Wheelchair_Control.py:

  • minor tweaks to permit reverse-engineering of protocol
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/brainstorms/Puzzlebox/Brainstorms/Wheelchair_Control.py

    r227 r228  
    1616import time 
    1717import signal 
    18 import parallel 
     18#import parallel 
    1919 
    2020##################################################################### 
     
    4747STOP_INTERVAL = 0.2 
    4848ALARM_INTERVAL = 0.1 
    49 PORT = parallel.Parallel() 
     49#PORT = parallel.Parallel() 
    5050 
    5151##################################################################### 
     
    8484def setOutput(data): 
    8585        output = data ^ int('00110011', 2) 
    86         PORT.setData(output) 
     86        #PORT.setData(output) 
    8787        print 'Output set to: ', int2bin(output) 
    88         print 'commands: i j k m to move, SPACE = stop, x = quit' 
     88        print 'commands: i j k m to move, SPACE = stop, x = quit' 
    8989 
    9090def moveBot(dir, speed): 
Note: See TracChangeset for help on using the changeset viewer.