Search found 2590 matches

by pythoncoder
Sun May 27, 2018 5:19 am
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 5
Views: 107

Re: Running webserver and other code simultaneously

@simonmcc I can confirm that uasyncio does work on ESP8266. This repo uses it extensively.
by pythoncoder
Sun May 27, 2018 5:15 am
Forum: General Discussion and Questions
Topic: PyConAu Talk - any suggestions?
Replies: 3
Views: 77

Re: PyConAu Talk - any suggestions?

@mattyt Have you contacted @Damien? As a fellow Australian he may be planning a talk and may be interested in chatting with you about content/plans for MicroPython 2.0.
by pythoncoder
Sat May 26, 2018 12:47 pm
Forum: Programs, Libraries and Tools
Topic: Asynchronous GPS library. Includes precision timing.
Replies: 0
Views: 35

Asynchronous GPS library. Includes precision timing.

This may be found here: follow the link . With these classes communication with a UART-based GPS module happens in the backgound. This allows the application to do other things concurrently, such as update a display or communicate over WiFi. GPS data may be accessed at any time via bound variables a...
by pythoncoder
Fri May 25, 2018 5:40 pm
Forum: General Discussion and Questions
Topic: Running webserver and other code simultaneously
Replies: 5
Views: 107

Re: Running webserver and other code simultaneously

This is something of a FAQ. I suggest you read this thread and look at this example code.

The consensus view is to use uasyncio. A tutorial on this MicroPython asyncio subset may be found here.
by pythoncoder
Thu May 24, 2018 4:23 pm
Forum: The MicroPython pyboard
Topic: SPI digital pot control MCP4151-502
Replies: 1
Views: 44

Re: SPI digital pot control MCP4151-502

Your SPI setup looks OK except I think bits should be 8 to match the buffer which is a bytes object. It's rather an odd device with the chip's SDI and SDO multiplexed. If you look at the datasheet fig. 6.1 it looks like a 200KΩ resistor should be used to protect the Pyboard output pin - the host con...
by pythoncoder
Thu May 24, 2018 3:42 pm
Forum: ESP32 boards
Topic: DAC.write_timed() support?
Replies: 1
Views: 50

Re: DAC.write_timed() support?

It seems not: MicroPython v1.9.4-7-gaeaace07 on 2018-05-12; ESP32 module with ESP32 Type "help()" for more information. >>> >>> import machine >>> p = machine.Pin(25) >>> a = machine.DAC(p) >>> dir(a) ['__class__', 'write'] >>> I doubt that a satisfactory implementation is possible owing to the high...
by pythoncoder
Wed May 23, 2018 7:03 am
Forum: ESP8266 boards
Topic: Asyncio gets stuck periodically
Replies: 19
Views: 520

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: 520

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: 149

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: 126

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...