Was playing with a RP2040 and mucking around with your code, I don't use this function (yet) however this looks like an error here on line 292 where counter is referenced?
|
def transfer_to_buffer_now(self, addr, count): |
|
self.set_write_addr(addressof(addr)) |
|
self.set_trans_count(counter, True) |
I'm guessing it should be self.set_trans_count(count, True) to match the function signature of (self, addr, count)