MicroPython • Re: pico onboard rtc and lack of datetime module
You can convert from a time tuple to a seconds-since-epoch and vice-verso so everything which you likely need to do can be done.While 'datetime' isn't a built-in there may be implementations of it for...
View ArticleMicroPython • Re: Why does this code only work over USB connected to Thonny?
Code: ... wlan = network.WLAN(network.STA_IF)wlan.active(True)wlan.connect(SSID,password)time.sleep(2)max_wait = 10while max_wait > 0: if wlan.status() < 0 or wlan.status() >= 3: break...
View ArticleMicroPython • How can i run endless loop, and in the same time run the code...
So i have a loop like this on my raspberry pi pico w with micro python, I'm using it to run a serverCode: while True: try: cl, addr = s.accept() clientIP = addr[0] response = html % str(clientIP)...
View ArticleMicroPython • Re: How can i run endless loop, and in the same time run the...
Have a look at https://randomnerdtutorials.com/raspber ... cropython/Using an asynchronous approach, the Raspberry Pi Pico W can handle multiple clients at a time and can also do other tasks while...
View Article
More Pages to Explore .....