Search found 45 matches

by Primesty
Fri Aug 07, 2020 8:16 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Hi Pete, I got my system up and running again :) I've successfully implemented code that blinks the led *and* reads the temperature at the same time according to your specs and tutorial. One question popped up. When I run this: from machine import Pin, Timer, I2C import dht import time import uasync...
by Primesty
Thu Aug 06, 2020 10:39 pm
Forum: ESP32 boards
Topic: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6
Replies: 1
Views: 1297

Re: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6

I'll reply myself and tell you what I did to get the system running again... You can pretty much follow the thread here: https://www.silabs.com/community/interface/forum.topic.html/cp210x_usb_to_uartbridgevcpdriversnotworking-sYsz And I found some useful tips here as well https://www.silabs.com/comm...
by Primesty
Sun Aug 02, 2020 9:40 pm
Forum: ESP32 boards
Topic: ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6
Replies: 1
Views: 1297

ESP32 CP210x USB to UART Bridge VCP Drivers NOT working on MacBook Pro 2019 after upgrade to Mac OS Catalina 10.15.6

Hi, I'm sure I'm not the only MAC user who is affected by this. Has anyone found a work-around? The UART bridge has been working fine with uPyCraft and connections to ESP8266/32. However with the latest update to OS Catalina 10.15.6 on Friday 2020-07-31, nothing works anymore. I can't access any of ...
by Primesty
Sat Aug 01, 2020 3:04 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Gotcha! Thanks for the input - once I have my drivers up and running again - I'll continue building the coros.
by Primesty
Fri Jul 31, 2020 7:51 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Hi Peter! I was able to re-write the code according to your tutorial so that it's not legacy anymore: from machine import Pin, Timer, I2C import dht import time import uasyncio import gc from my_app import temp_reader led = Pin(2, Pin.OUT) def set_global_exception(): def handle_exception(loop, conte...
by Primesty
Tue Jul 28, 2020 2:07 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Will do and re-write according to the tutorial!
by Primesty
Mon Jul 27, 2020 9:50 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Awesome! I've installed esp32-idf3-20200727-unstable-v1.12-662-g8da40baa4.bin and *uasyncio* worked right out of the box and I'm getting version 3.0.0! The blink example runs fine now on the bread-board with i2c ports connected as well as GPIO 14 for the DHT22 sensor. from machine import Pin, Timer,...
by Primesty
Mon Jul 27, 2020 1:35 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Gotcha! Yeah, like you said, I didn't get a version number. As for firmware, I'm currently running esp32-idf3-20191220-v1.12.bin I understand other builds are available here http://micropython.org/download/esp32/ right? For a daily build, do I essentially pick one of the unstable ones? What is the d...
by Primesty
Sun Jul 26, 2020 1:45 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Hey Peter, I've implemented your suggestions and reduced the code to the blink example: from machine import Pin, Timer, I2C import dht import time import uasyncio import gc led = Pin(2, Pin.OUT) class temp_reader(): sleep = 1 #static instance variable for testing def __init__(self, led): self.led = ...
by Primesty
Sat Jul 25, 2020 9:40 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 7232

Re: uasyncio - How detect the end task in another task.

Okay, so I was able to implement a first test case for a class like you mentioned, Peter. This works from machine import Pin, Timer, I2C from rotary_irq_esp import RotaryIRQ import ssd1306 import dht import network import time import uasyncio sensor = dht.DHT22(Pin(14)) led = Pin(2, Pin.OUT) class t...