Search found 5272 matches

by pythoncoder
Sat Jul 24, 2021 6:29 pm
Forum: Programs, Libraries and Tools
Topic: GPS click on micropython
Replies: 7
Views: 170

Re: GPS click on micropython

The GPS unit I use sends data regularly without needing any prompting. My library in normal use is listen-only. On a cold start it takes a few minutes before it starts sending because it waits to acquire sufficient satellites but then it sends once per second.
by pythoncoder
Sat Jul 24, 2021 6:18 pm
Forum: Raspberry Pi microcontroller boards
Topic: Trivial code sometimes takes 5ms and interrupts are missed
Replies: 10
Views: 252

Re: Trivial code sometimes takes 5ms and interrupts are missed

Interesting choice not to set the "hard" as the default on a low-level system such as this. I am not convinced that this was the right choice... The point of the machine module is that it is cross-platform: it should be possible to run code reliant on the module on any platform (subject to trivial ...
by pythoncoder
Sat Jul 24, 2021 1:24 pm
Forum: MicroPython pyboard
Topic: Simple connect liteboard -> rs3231 rtc module
Replies: 2
Views: 41

Re: Simple connect liteboard -> rs3231 rtc module

You might want to look at this doc.
by pythoncoder
Fri Jul 23, 2021 2:08 pm
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 8
Views: 251

Re: msgpack "trimmed down" for MicroPython on small controllers.

I'll take a look at that and try to figure out if it has a chance of being significantly smaller. I've done a bit of optimisation and got it down to ~12.5KiB on STM. This is with dump and load functionality retained in one module. I think it would be hard to go much further with this codebase. The c...
by pythoncoder
Fri Jul 23, 2021 6:23 am
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 8
Views: 251

Re: msgpack "trimmed down" for MicroPython on small controllers.

I don't know if anyone is still interested in this - if not I'll pipe down ;) After scrapping the Python 2 cruft and other easy trims the thing still weighs in at a hefty 26K. The authors' concept of "lightweight" is not mine. The function dispatch table weighs in at an elephantine 10K which I plan ...
by pythoncoder
Wed Jul 21, 2021 4:54 pm
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 8
Views: 251

Re: msgpack "trimmed down" for MicroPython on small controllers.

I have tried your code and it does indeed seem OK on the Unix build and STM32. There is more to be done to make it "micro". The low hanging fruit are stripping out the Python2 stuff and maybe ditching compatibility mode, but it really needs a thorough review. It does strike me as worth doing as we h...
by pythoncoder
Wed Jul 21, 2021 6:51 am
Forum: Programs, Libraries and Tools
Topic: msgpack "trimmed down" for MicroPython on small controllers.
Replies: 8
Views: 251

Re: msgpack "trimmed down" for MicroPython on small controllers.

I think this could be a very useful addition to the current MicroPython serialisation options but I agree with the comment of @stijn: it would benefit greatly by being presented as a complete project with installation instructions. Also docs that state any MicroPython limitations or differences. I w...
by pythoncoder
Wed Jul 21, 2021 6:35 am
Forum: Raspberry Pi microcontroller boards
Topic: Cannot get access to /dev/ttyACM0
Replies: 20
Views: 3237

Re: Cannot get access to /dev/ttyACM0

I think it's worth saying that this problem has gone away here, presumably fixed in a firmware update.
by pythoncoder
Tue Jul 20, 2021 2:33 pm
Forum: Development of MicroPython
Topic: Native emitter deep dive
Replies: 2
Views: 142

Re: Native emitter deep dive

That is a seriously deep dive. Interesting, but rather you than me ;)