Search found 4 matches
- Mon Jan 20, 2020 11:42 am
- Forum: ESP8266 boards
- Topic: howto: Control passive buzzer
- Replies: 6
- Views: 15959
Re: howto: Control passive buzzer
one solution i used is to make the buzzer init then deinit when needed example with magnetic reed switch from machine import Pin , PWM import utime # O closed 1 open al = Pin(4,Pin.IN,Pin.PULL_UP) while True : if al.value() == 1 : beeper = PWM(Pin(14, Pin.OUT), freq=440, duty=512) utime.sleep(1) bee...
- Sun Oct 13, 2019 10:57 am
- Forum: Programs, Libraries and Tools
- Topic: uasyncio example study
- Replies: 5
- Views: 3350
- Sat Oct 12, 2019 1:07 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio example study
- Replies: 5
- Views: 3350
Re: uasyncio example study
thank you for your time sir
is it better to define a loop.run_until_complete() handler or use the logic i came up with(watching the queue and stopping the loop.run_forever())
if so what handler should i write for loop.run_until_complete()
is it better to define a loop.run_until_complete() handler or use the logic i came up with(watching the queue and stopping the loop.run_forever())
if so what handler should i write for loop.run_until_complete()
- Fri Oct 11, 2019 9:23 pm
- Forum: Programs, Libraries and Tools
- Topic: uasyncio example study
- Replies: 5
- Views: 3350
uasyncio example study
peace everyone new in the world of micropython , i came across uasyncio and searched for a basic example after some tries i have some questions: what's the meaning of runleq as argument of uasyncio.get_event_loop() ? is this example valid? using uasyncio 2.0 on a esp 01 import utime import uasyncio ...