From fbb7196ddb7d300e2fc63ddabffc1b9e6b8a8af7 Mon Sep 17 00:00:00 2001 From: travisutk Date: Wed, 3 Jun 2009 18:00:26 +0000 Subject: [PATCH] Client and monitor getting neighborly. This is just about ready for client-side bitbanging. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@25 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/goodfet | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/goodfet b/client/goodfet index 1552475..7e93f6a 100755 --- a/client/goodfet +++ b/client/goodfet @@ -37,7 +37,7 @@ class Client: 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): @@ -46,7 +46,7 @@ class Client: 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"; @@ -73,7 +73,7 @@ class Client: 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): @@ -85,6 +85,7 @@ class Client: 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."; -- 2.20.1