Search found 2 matches
- Sat Apr 16, 2022 3:18 pm
- Forum: ESP32 boards
- Topic: ESP32-S3 WROOM 1 - WLAN.active(True) Hangs
- Replies: 1
- Views: 1331
ESP32-S3 WROOM 1 - WLAN.active(True) Hangs
Also posted on stackoverflow . When I try to enable wifi on this board , the .active(True) method hangs forever. .venv/bin/python -m serial.tools.miniterm /dev/tty.usbmodem1234561 115200 --- Miniterm on /dev/tty.usbmodem1234561 115200,8,N,1 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed...
- Sun Sep 14, 2014 2:28 pm
- Forum: General Discussion and Questions
- Topic: Question about Timer.callback(), lambdas and functions
- Replies: 7
- Views: 12137
Question about Timer.callback(), lambdas and functions
If I do as the docs point out: import pyb t_4 = pyb.Timer(4) t_4.init(freq=1) t_4.callback(lambda t: pyb.LED(4).toggle()) I get a blinking blue light. It even works if I wrap it in a simple toggle function (I believe the restraint is callback() has to be given a function with 1 arg): def toggleLed(n...