Hello, I’m trying to understand this code: github.com/newaetech/chipwhispe … SAKURAG.py
I’ve noticed that for reading/writting to the buffer you have to write: sasebo.write / sasebo.read.
Why do you put sasebo before the method? sasebo is the buffer, right? where does this name come from?
What happend if I just put “write” without sasebo ?
Thanks in advance
The “sasebo” is the FTDI D2XX driver. There is a chunk of code like this:
self.sasebo = ft.openEx(self.serNo)
except ft.ftd2xx.DeviceError, e:
self.sasebo = None
print "Failed to find device: %s" % str(e)
The line “self.sasebo = …” sets the SASEBO piece to be your FTDI D2XX driver API. So it’s just read/writing to that chip!