That did the trick, thanks!There's 'MemoryView' or something like that. I have never used it and am not convinced it doesn't copy. And I am not convinced there is what you want from when I last dipped into looking at doing similar.
Al that was needed was replacing
Code:
byte_buffer = bytearray(MAX_BUFFER_SIZE)
Code:
_byte_buffer = bytearray(MAX_BUFFER_SIZE)byte_buffer = memoryview(_byte_buffer)
I know, but since for my work I’m managing a couple of analysts using Python I wanted to finally get to use it myself as well, so when I had a hobby project for with no readily available solution, I decided to build it myself and learn the ins and outs of Python in one go (I’ve used several other programming languages over the years, just never Python, up to recently).In this respect MicroPython on an RP2040 isn't the ideal tool for the job.
Statistics: Posted by harmlammers — Sat May 04, 2024 9:31 am