Search found 2014 matches

by pythoncoder
Mon Dec 11, 2017 11:18 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 67
Views: 21668

Re: uasyncio - asyncio-like cooperative multitasking framework for uPy

Note that to use timeouts and task cancellation you still need a firmware build with PR3380: https://github.com/micropython/micropython/pull/3380.
by pythoncoder
Mon Dec 11, 2017 6:35 am
Forum: Hardware Projects
Topic: Bluetooth SnekTek Board
Replies: 1
Views: 106

Re: Bluetooth SnekTek Board

I suspect most people in here are handy with a soldering iron - or a breadboard and jumpers; hence the lack of feedback. But they look like nice products. Incidentally the URL in your post is bad.
by pythoncoder
Mon Dec 11, 2017 6:20 am
Forum: General Discussion and Questions
Topic: SPI start stop latency
Replies: 6
Views: 123

Re: SPI start stop latency

...I am finding the limiting factor of what I can do on the ESP8266 is the available ram. After micropython is loaded into memory there is only 22kb of memory left, then you have to load the program then what's left is what is what the program can use for allocation. ... If you issue <ctrl>D at the...
by pythoncoder
Mon Dec 11, 2017 6:01 am
Forum: ESP8266 boards
Topic: ussl module: N00b help requested.
Replies: 3
Views: 200

Re: ussl module: N00b help requested.

I haven't had the chance to revisit this but there have been recent changes to SSL/TLS which should enable it to work. But read the caveats here http://docs.micropython.org/en/latest/esp8266/esp8266/general.html notably those at the end regarding certificates. Also I gather that initiating a TLS con...
by pythoncoder
Mon Dec 11, 2017 5:39 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - asyncio-like cooperative multitasking framework for uPy
Replies: 67
Views: 21668

Task cancellation

Ah, got it. uasyncio have no handles for task cancellation. Task cancellation can be achieved with the latest build - an example of how it can be done may be found here https://github.com/peterhinch/micropython-async/blob/master/TUTORIAL.md#36-task-cancellation . But you are correct in that a sleep...
by pythoncoder
Mon Dec 11, 2017 5:24 am
Forum: ESP8266 boards
Topic: Reached the memory limits of the ESP8266 board. Now what?
Replies: 2
Views: 65

Re: Reached the memory limits of the ESP8266 board. Now what?

If the limit is RAM the solution is to use frozen bytecode. This is documented here http://docs.micropython.org/en/latest/p ... ained.html.
by pythoncoder
Sat Dec 09, 2017 8:23 am
Forum: General Discussion and Questions
Topic: SPI start stop latency
Replies: 6
Views: 123

Re: SPI start stop latency

Regarding the first question you need to consider how much you'd gain over sending the data in large chunks. I think you'd find the gains might be small. Consider pre-allocating a buffer for a chunk at the start of your program using a bytearray . This avoids the overhead of allocating memory every ...
by pythoncoder
Sat Dec 09, 2017 7:41 am
Forum: Other Boards
Topic: I know what I want for Christmas
Replies: 4
Views: 115

Re: I know what I want for Christmas

I agree about RPN and use an HP (my first calculator was an HP35). But if I'm at a PC I usually use Python.