Search found 4 matches

by TomLin
Fri May 07, 2021 11:03 am
Forum: Programs, Libraries and Tools
Topic: MicrPython on Windows
Replies: 4
Views: 2884

Re: MicrPython on Windows

Hi stijn, looks promising although currently maybe too much heavy lifting needed, considering my experience. Looking forward to a more readily installable edition.
by TomLin
Thu May 06, 2021 7:17 pm
Forum: Programs, Libraries and Tools
Topic: MicrPython on Windows
Replies: 4
Views: 2884

MicrPython on Windows

Is there a tool or environment for running MicroPython on Windows? I have used PythonWin, which is a very nice tool but it only supports Python 2.7.2. Naturally, running on Windows would not be a real time solution and cannot support IO operations. However, it would be a convenient debugging tool fo...
by TomLin
Thu Apr 22, 2021 11:59 am
Forum: MicroPython pyboard
Topic: Most efficient searching within large bytearrays
Replies: 8
Views: 9710

Re: Most efficient searching within large bytearrays

Oh yes, of course! Thank you so much for your quick answer. Concerning the making of a copy of bytearray buf , it is kind of waste of memory, which could be tolerated, however. But if I put this sentence within a loop, will this extra area be reused during consecutive passes of the code in the loop?
by TomLin
Thu Apr 22, 2021 9:08 am
Forum: MicroPython pyboard
Topic: Most efficient searching within large bytearrays
Replies: 8
Views: 9710

Re: Most efficient searching within large bytearrays

I have the same problem. Tried above mentioned solution: bytes(input_string).find(pattern) but it results in error. Here is my sample code (with only essential lines shown): buf = bytearray(255) #initialize UART input buffer as bytearray resp2 = uart.readinto(buf) #read UART input into buf print (by...