Search found 904 matches
- Sat Apr 17, 2021 6:11 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Wifi bridge for RPI Pico
- Replies: 36
- Views: 3053
Re: Wifi bridge for RPI Pico
I'm still working on my implementation of a socket over uart with an Esp32 or esp8266 as the wifi module but it's going rather slow due to my personal situation. I have a small working code, it communicates fine with an echo server but it's far from good enough for mqtt because currently there is no...
- Fri Apr 16, 2021 8:45 pm
- Forum: Programs, Libraries and Tools
- Topic: RTC in ESP8266
- Replies: 2
- Views: 86
Re: RTC in ESP8266
If you use rshell to connect to the esp8266 then rshell sets the rtc to the PC time.
- Thu Apr 15, 2021 5:20 am
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 34
- Views: 694
Re: UART not working with today's version of micropython
Maybe I'm missing something but my understanding is, that if anything should be missing, it's the end of the message, not the start? Wh, would "heart" disappear? Apart from that I never used readline() but would expect it to only return something when it had a full line (otherwise returning none?). ...
- Tue Apr 06, 2021 12:21 pm
- Forum: ESP32 boards
- Topic: Threads
- Replies: 6
- Views: 465
- Mon Apr 05, 2021 6:12 pm
- Forum: General Discussion and Questions
- Topic: asyncio wait for task in a group
- Replies: 9
- Views: 233
Re: asyncio wait for task in a group
In V3 you can always clear down an event immediately after setting it: I think this is normally the best way to use the class as it keeps the set/clear logic in one place. This avoids risks of an event being set and not cleared. I would highly recommend not to do that. It's not a matter of how V3 w...
- Mon Apr 05, 2021 12:40 pm
- Forum: General Discussion and Questions
- Topic: asyncio wait for task in a group
- Replies: 9
- Views: 233
Re: asyncio wait for task in a group
Don't clear the event in the reading method, let the main loop do that. As for the 2 seconds delay, you can change that by turning your main loop around a bit: async def update_display(display): # if needed wait a few ms on startup while True: print('Update display') display.fill(0) display.text('Te...
- Mon Apr 05, 2021 7:48 am
- Forum: General Discussion and Questions
- Topic: asyncio wait for task in a group
- Replies: 9
- Views: 233
Re: asyncio wait for task in a group
You can poll all events like: a=[event1,event2,event3] for event in a: if event.is_set(): # process LCD event.clear() await asyncio.sleep_ms(20) The downside is obviously that it checks all the events every 20ms and is therefore less efficient than awaiting a single event directly. Also it might tak...
- Fri Apr 02, 2021 7:33 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 726
Re: Having issues with trying to catch "OneWireError" exception
ds.scan() is unlikely to throw an exception. In my application I catch oneWire errors on conversion and any type of error on reading: https://github.com/kevinkk525/pysmartnode/blob/0cd27d9aecdac334abbd70d939d03d68832e164b/pysmartnode/components/sensors/ds18.py#L148 https://github.com/kevinkk525/pysm...
- Tue Mar 30, 2021 4:14 pm
- Forum: ESP8266 boards
- Topic: Is there an updated guide about how to use esp-open-sdk?
- Replies: 6
- Views: 327
Re: Is there an updated guide about how to use esp-open-sdk?
oh, then my chain might have pulled that version before it got removed. Thanks for reporting the needed change.
- Tue Mar 30, 2021 5:21 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 726
Re: Having issues with trying to catch "OneWireError" exception
You might need to catch "onewire.OneWireError"