Search found 49 matches

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

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

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

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

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...
by Primesty
Wed Jul 22, 2020 9:37 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 32284

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

Hi Peter,

Thanks for the quick Python re-fresher! I'll look into it!
by Primesty
Wed Jul 22, 2020 1:14 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 32284

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

Hey Peter, Thanks for your thorough explanation! I'm new to programming, in micropython especially, and wasn't aware that having processes run on endless loops is common practice :) Thanks also for your insights of how to structure the app and where to put variables and co-routines! I'll try to impl...
by Primesty
Tue Jul 21, 2020 9:37 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 32284

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

@jimmo thanks for the quick answer! I'll definitely give that a try. What I don't understand yet is how I break the endless loop I have right now... Conceptually, it seems the steps should be this: 1) Set target temperature with encoder and commit it to list by pushing button (show on OLED) 2) Run t...
by Primesty
Tue Jul 21, 2020 12:19 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - How detect the end task in another task.
Replies: 50
Views: 32284

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

Hello, at the risk of posting this to the wrong topic, I'm looking for some uasyncio help if possible - and I'm not able to create my own topic for some reason. I have started working with micropython fairly recently, so please forgive my ignorance. I'm trying to implement something similar to matty...
by Primesty
Sat Jul 11, 2020 3:57 pm
Forum: ESP8266 boards
Topic: WifiManager Script Template
Replies: 6
Views: 10935

Re: WifiManager Script Template

At the risk of nobody reading this --- @chrisgp I was able to implement your networkconfig.py script ( https://github.com/cpopp/MicroPythonSamples/tree/master/MicroPythonSamples ). In my main.py file I import all the libraries and then call networkconfig.start() I'm using an ESP 8266 Nodemcu with mi...