Search found 4 matches

by boadeletrius
Tue Jun 22, 2021 4:29 am
Forum: Programs, Libraries and Tools
Topic: Micropython asynchronous function for garage door opener
Replies: 5
Views: 2369

Re: Micropython asynchronous function for garage door opener

pythoncoder wrote:
Sat Jun 19, 2021 2:50 pm
Have you seen my uasyncio tutorial?
No, I have not. That looks excellent! I will have a look.
by boadeletrius
Sun Jun 20, 2021 7:42 am
Forum: Drivers for External Components
Topic: i2c pyb or machine for sgp30 adafruit sensor?
Replies: 11
Views: 26812

Re: i2c pyb or machine for sgp30 adafruit sensor?

In case anyone else wants to use this sensor. This post was very useful for getting the SGP30 working with the current Micropython version on an esp8266. A quick summary: Use the driver from here: https://github.com/alexmrqt/micropython-sgp30 modify line 54 from _SGP30_FEATURESET = const(0x0020) to ...
by boadeletrius
Fri Jun 18, 2021 5:38 pm
Forum: Programs, Libraries and Tools
Topic: Micropython asynchronous function for garage door opener
Replies: 5
Views: 2369

Re: Micropython asynchronous function for garage door opener

Thank you very much for the reply! This is exactly what I was looking for. I have never used Python previously and a garage door opener seemed like a relatively easy project to get going with. I actually looked at uasyncio but I could not find a good example of how to use it for this type of situati...
by boadeletrius
Fri Jun 18, 2021 3:11 am
Forum: Programs, Libraries and Tools
Topic: Micropython asynchronous function for garage door opener
Replies: 5
Views: 2369

Micropython asynchronous function for garage door opener

I am trying to make a simple web server with the sole purpose of showing a web page with a button for opening the garage door and showing whether the door is open or closed. Is there an easy way to make the pushbutton() function run asynchronously? I was looking at https://github.com/peterhinch/micr...