Search found 2584 matches

by pythoncoder
Wed May 23, 2018 7:03 am
Forum: ESP8266 boards
Topic: Asyncio gets stuck periodically
Replies: 19
Views: 475

Re: Asyncio gets stuck periodically

@marfis Good idea. That would demonstrate whether the lockup is at the Python level or in the RTOS - if the latter, presumably the timer would be stuck. It would potentially save time if the code reported each time it (re)started.
by pythoncoder
Tue May 22, 2018 9:09 am
Forum: ESP8266 boards
Topic: Asyncio gets stuck periodically
Replies: 19
Views: 475

Re: Asyncio gets stuck periodically

For what it's worth I have a high degree of confidence in uasyncio : I've been using it quite intensively for some time and only found one issue, fixed by @pfalcon long ago. His work is top-quality. I'm familiar with the code and can't imagine a mechanism for this long delay. Of course that doesn't ...
by pythoncoder
Tue May 22, 2018 7:54 am
Forum: ESP8266 boards
Topic: ESP8266 - micropython global variable does not work
Replies: 5
Views: 107

Re: ESP8266 - micropython global variable does not work

Hah, I am java dev. and really have hard time beating all these indentation, missing curly brackets and namespaceing thing. That was my initial reaction coming to Python from C/C++. To my surprise I quickly became a total convert to mandatory indentation. The way code looks is the way it behaves. C...
by pythoncoder
Tue May 22, 2018 7:44 am
Forum: Programs, Libraries and Tools
Topic: Issue with I2C while writing and reading from buffer
Replies: 5
Views: 99

Re: Issue with I2C while writing and reading from buffer

I think you need to read up on the Python range keyword. Or experiment with it...
by pythoncoder
Mon May 21, 2018 5:37 pm
Forum: General Discussion and Questions
Topic: RTC (Clock) is too slow on PyBoard Lite v1.0 with accelrometer
Replies: 6
Views: 106

Re: RTC (Clock) is too slow on PyBoard Lite v1.0 with accelrometer

I can confirm this. On mine the error is 3.8%. This is much greater than is plausible from a crystal oscillator - I have a vague recollection that the PyBoard Lite uses a resonator in place of a crystal as a cost saving measure. Pyboard V1.1 and V1.0 use a crystal which can be calibrated to within ~...
by pythoncoder
Mon May 21, 2018 6:53 am
Forum: General Discussion and Questions
Topic: No luck with SPI
Replies: 5
Views: 137

Re: No luck with SPI

When I referred to pullups it was on the Pyboard and it was intended to explain your results reading from an SPI bus which was not connected to hardware. There is no general requirement to use pullups. Regarding the libraries pyb was developed first when MicroPython had only one target: the Pyboard....
by pythoncoder
Mon May 21, 2018 6:35 am
Forum: Other Boards
Topic: Chinese Micropython Clones(?)
Replies: 8
Views: 334

Re: Chinese Micropython Clones(?)

An interesting test would be measure the current consumption after issuing pyb.standby(). A Pyboard V1.1 will take about 6μA. If they've used a cheapskate regulator it will be higher.
by pythoncoder
Mon May 21, 2018 6:32 am
Forum: ESP8266 boards
Topic: ESP8266 - micropython global variable does not work
Replies: 5
Views: 107

Re: ESP8266 - micropython global variable does not work

torwag wrote:
Sun May 20, 2018 2:41 pm
...they quickly can create all kind of funny problems...
The worst of which is the one you correctly identified above ;)
by pythoncoder
Mon May 21, 2018 6:22 am
Forum: Programs, Libraries and Tools
Topic: Issue with I2C while writing and reading from buffer
Replies: 5
Views: 99

Re: Issue with I2C while writing and reading from buffer

That looks correct. I think you may be misunderstanding the way Python displays bytes and bytearray objects. Where an element can be represented as an ASCII character it will be, so 0x09 is shown as \t (the tab character) and 0x0a displays as \n (newline). >>> a = bytearray(b'\x00\x01\x02\x03\x04\x0...