X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2FGoodFET.py;h=cf01c85cd341d9a13bb677208f4cba5a157c89c8;hp=5645f52b9174a96e5ed42130d2fa4aeaebdfbeb2;hb=2b654b579b948558edecc63dd7ab3aa4543f050d;hpb=fbf1dcfd59f6213926c78178115c1b7110afdf8f diff --git a/client/GoodFET.py b/client/GoodFET.py index 5645f52..cf01c85 100755 --- a/client/GoodFET.py +++ b/client/GoodFET.py @@ -68,6 +68,12 @@ class GoodFET: return self.data; #Monitor stuff + def out(self,byte): + """Write a byte to P5OUT.""" + self.writecmd(0,0xA1,1,[byte]); + def dir(self,byte): + """Write a byte to P5DIR.""" + self.writecmd(0,0xA0,1,[byte]); def peekbyte(self,address): """Read a byte of memory from the monitor.""" self.data=[address&0xff,address>>8];