import ctypes #from numpy import * #from pylab import * from time import * # ------------------------------------------------------------------------------------ # Basic I/O routines - These can be used in the Python shell. def In(addr) : return ctypes.windll.inpout32.Inp32(addr) # Read byte from io address addr def Out(addr, byte) : ctypes.windll.inpout32.Out32(addr, byte) # Send byte to io address addr # ------------------------------------------------------------------------------------ # 888 is the location of the parallel port, put the address of the GPIO here # 1,2,4,8, 16,32,64,128 send 5 volts thought a wire to turn on a device. Out (888,1) #Turns on device 1, Out(888,16) turns on device 5