Search found 230 matches
- Thu Jun 21, 2018 8:59 pm
- Forum: ESP32 boards
- Topic: serial read function not return content as expected
- Replies: 5
- Views: 8114
Re: serial read function not return content as expected
I think that ser.read() is probably behaving as it should, though I'm no expert. I think it tries to read whatever characters are already available, and doesn't wait on a particular character (newline) coming through. The number n you passed to ser.read(n) isn't interpreted as a minimum number of ch...
- Wed Jun 20, 2018 6:31 pm
- Forum: General Discussion and Questions
- Topic: Promoting Micropython with workshops and courses
- Replies: 1
- Views: 2189
Re: Promoting Micropython with workshops and courses
Thanks for the diligent and comprehensive reply, @philwilkinson40 My comments below are not intended to suggest you should have done anything differently, but are just to share perspectives where I have chosen to make different decisions, so people can see some alternatives. PROJECT ORIENTATION The ...
- Tue Jun 19, 2018 4:50 pm
- Forum: General Discussion and Questions
- Topic: Memory allocation errors with plenty of space
- Replies: 16
- Views: 26315
Re: Memory allocation errors with plenty of space
As long as your chomping is interspersed by a gc.collect() before other allocations take place, you should be OK as the same region of memory should be allocated and cleared each time.The problem comes if those temporary allocations are interspersed with allocations which are likely to remain set as...
- Tue Jun 19, 2018 1:17 pm
- Forum: Programs, Libraries and Tools
- Topic: Announcing mpy-miniterm, a serial terminal with integrated file synchronisation
- Replies: 6
- Views: 5953
Re: Announcing mpy-miniterm, a serial terminal with integrated file synchronisation
This version of the flowchart might make relationships clearer. Original graphml edited using yed is at https://gist.github.com/cefn/8927a98264 ... d8618175a7
- Tue Jun 19, 2018 12:37 pm
- Forum: Programs, Libraries and Tools
- Topic: Announcing mpy-miniterm, a serial terminal with integrated file synchronisation
- Replies: 6
- Views: 5953
Re: Announcing mpy-miniterm, a serial terminal with integrated file synchronisation
Been trying to organise in my mind the process which I use, to be able to share it with learners and establish the simplest possible tool support for it. It's something like the diagram below, with the key aspect for learners being the interaction between the editor (where you have 'banked' some pyt...
- Mon Jun 18, 2018 11:58 pm
- Forum: Development of MicroPython
- Topic: GC and Heap
- Replies: 20
- Views: 12277
Re: GC and Heap
Isn't there a different architectural approach which could deliver what you want without tinkering under the hood of Micropython? For example, there's first class support for continuations in the form of generators. Can't yield give you what you want, in the sense of resuming at some application sta...
- Mon Jun 18, 2018 11:48 pm
- Forum: General Discussion and Questions
- Topic: Memory allocation errors with plenty of space
- Replies: 16
- Views: 26315
Re: Memory allocation errors with plenty of space
It's really hard to respond without seeing any code. However, I think it's fairly simple to imagine a procedure which systematically fragments memory in the way you describe and if your code were shared, it might even be possible to pin it down. The way this happens is well documented here... https:...
- Mon Jun 18, 2018 12:04 am
- Forum: Programs, Libraries and Tools
- Topic: Rshell buffer size
- Replies: 5
- Views: 4306
Re: Rshell buffer size
Where can I find out more about your Micropython tuition? What boards did you use? Are any of the materials or projects you used documented so I can learn from them? I am trying to gather some resources at http://vgkits.org to help educators in the UK get started with absolute budget micropython phy...
- Fri Jun 15, 2018 2:36 pm
- Forum: ESP8266 boards
- Topic: Fail to parse a json in api.apixu.com
- Replies: 4
- Views: 3294
Re: Fail to parse a json in api.apixu.com
Worth creating an actual test case which runs at least before asking people to fix your code. You didn't prove this in your original code. Running it reveals... cefn-bionic-thinkpad:unix$ micropython MicroPython v1.9.4-dirty on 2018-06-15; linux version Use Ctrl-D to exit, Ctrl-E for paste mode >>> ...
- Wed Jun 13, 2018 9:23 pm
- Forum: ESP8266 boards
- Topic: Fail to parse a json in api.apixu.com
- Replies: 4
- Views: 3294
Re: Fail to parse a json in api.apixu.com
I think it would be useful to see a copy of the JSON payload. No idea how to approach solving the problem given the reference URL you have provided doesn't work since the API key has been removed. What is the value of the res.content property? There's a chance that it isn't JSON at all. If it IS jso...