Search found 5084 matches

by pythoncoder
Sun Apr 18, 2021 12:51 pm
Forum: ESP32 boards
Topic: LAN-Support with ESP-IDF 4
Replies: 1
Views: 67

Re: LAN-Support with ESP-IDF 4

A first step is to read the Contributor Guidelines and code conventions.
by pythoncoder
Sun Apr 18, 2021 12:46 pm
Forum: General Discussion and Questions
Topic: How do you catch getaddrinfo() errors
Replies: 1
Views: 128

Re: How do you catch getaddrinfo() errors

DNS queries can be expected sometimes to fail. The reason no error message is displayed is because you are trapping the resultant OSError and ignoring it. If you are always accessing the same IP address (or small set of addresses), you could do the DNS query/queries when the application starts (repe...
by pythoncoder
Sun Apr 18, 2021 12:26 pm
Forum: Programs, Libraries and Tools
Topic: Is passing 'self' to another class possible
Replies: 1
Views: 102

Re: Is passing 'self' to another class possible

Most applications involving displays instantiate the display early in the code's execution. That instance - typically a global singleton - is then available for use by any other object.
by pythoncoder
Sun Apr 18, 2021 12:21 pm
Forum: General Discussion and Questions
Topic: Time control in a while loop
Replies: 2
Views: 149

Re: Time control in a while loop

I would look at uasyncio. There is a learning curve, but in most cases it's the easiest way to manage tasks involving time delays. See the docs and this tutorial.
by pythoncoder
Sun Apr 18, 2021 12:18 pm
Forum: Raspberry Pi microcontroller boards
Topic: Wifi bridge for RPI Pico
Replies: 36
Views: 3020

Re: Wifi bridge for RPI Pico

... Difficult, but not impossible... I was suggesting that supporting MQTT using the ESP in its original "modem" mode would be problematic. I fully accept that it should be possible to write a MicroPython driver to provide a BSD socket to a non-networked client. This would communicate via a UART wi...
by pythoncoder
Fri Apr 16, 2021 11:38 am
Forum: ESP32 boards
Topic: ESP-Now support for ESP32 (and ESP8266)
Replies: 67
Views: 8048

Re: ESP-Now support for ESP32 (and ESP8266)

...I'm not sure if it is useful to handle such a small delay with asyncio. Fair point. A non-sync send() returns in less than a millisecond. As the ESP-Now docs say, these responses come from very low down in the network stack and don't guarantee the message has been or will ever be received by an ...
by pythoncoder
Fri Apr 16, 2021 11:30 am
Forum: General Discussion and Questions
Topic: Installing uasyncio V3
Replies: 4
Views: 330

Re: Installing uasyncio V3

upip is intended to run on a device with a network connection. For non-networked targets there is micropip which runs under CPython and enables libraries to be installed to a PC's filesystem: the result can then be copied to the target's filesystem.
by pythoncoder
Fri Apr 16, 2021 11:26 am
Forum: ESP32 boards
Topic: DAC Problem
Replies: 4
Views: 169

Re: DAC Problem

The other option is to use a host with a decent DAC such as a Pyboard. Note that, in my testing, the ESP32 DAC is also adrift at the high end of its range.
by pythoncoder
Thu Apr 15, 2021 7:46 am
Forum: General Discussion and Questions
Topic: Fade 1 image to show another.
Replies: 6
Views: 378

GC9A01 display driver

OK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display. I'm not aware of one, and a forum search draws a blank. You may have to DIY. This usually involves porting Arduino C code to MicroPython, a task that requires familiarity with low level coding in both lang...