self.serialport.write(chr(app));
self.serialport.write(chr(verb));
self.serialport.write(chr(count));
- print "count=%02x, len(data)=%04x" % (count,len(data));
+ #print "count=%02x, len(data)=%04x" % (count,len(data));
for d in data:
self.serialport.write(chr(d));
def readcmd(self):
self.count=ord(self.serialport.read(1));
if self.count>0:
self.data=self.serialport.read(self.count);
- print "%02x %02x %02x" % (self.app, self.verb, self.count);
+ #print "%02x %02x %02x" % (self.app, self.verb, self.count);
def handlemonitor(self):
if self.verb==0x7E:
print "Monitor: NOK";
self.data=[address&0xff,address>>8,value];
self.writecmd(0,0x03,3,self.data);
self.readcmd();
- print "POKE returned %02x" % ord(self.data[0]);
+ #print "POKE returned %02x" % ord(self.data[0]);
return ord(self.data[0]);
def monitortest(self):
self.pokebyte(0x0021,0); #Drop LED
if self.peekbyte(0x0021)!=0:
print "ERROR, P1OUT not cleared.";
+ self.pokebyte(0x0021,1); #Light LED
print "Self-test complete.";