All Questions
Tagged with micropython python
412 questions
0
votes
0
answers
38
views
re.search() raises recursion depth error when in thread [duplicate]
In MicroPython, re.findall() does not exist. Therefore, I made one myself:
def findAll(pattern, s, flags = 0):
found = []
while True:
m = re.search(pattern, s, flags)
if m:
...
1
vote
0
answers
41
views
Asyncio webserver store HTML dropdown option in Python variable
Im trying to run webserver beneath my main python script on my ESP32.
I want to display a HTML dropdown menu on the webserver and store the value in a Python variable.
Here is a option of this ...
0
votes
0
answers
115
views
Issue Running Async Web Server with Multi-Core Threading on Raspberry Pi Pico W
I'm working on a project using the Raspberry Pi Pico W 2 that involves displaying data from BLE sensors on a web page, with everything running on the Pico.
My intention is to:
Run an asynchronous web ...
1
vote
1
answer
51
views
Convert this socket server sketch from python to micro-python
#Imports modules
import socket
import time
listensocket = socket.socket() #Creates an instance of socket
Port = 8000 #Port to host server on
maxConnections = 999
IP = socket.gethostname() #IP address ...
0
votes
0
answers
29
views
uasyncio.Event not resuming main loop immediately after set on Raspberry Pi Pico
I'm programming in Micropython for the Raspberry Pi Pico. In my main loop I await for an uasyncio.Event, which I successfully set from an interrupt context.
I expected the code to pause and then ...
0
votes
1
answer
45
views
Object with asyncio task not destroyed when out of scope
I've noticed that objects which include an asyncio Task don't appear to be deleted when they go out of scope, and I'd like to know a better of managing these objects to avoid accumulating too many.
An ...
0
votes
1
answer
44
views
micropython stm32F722ze, ValueError: Pin(PC13) doesn't exist
I am using stm32f722ze and trying to write a program to control led using push button but it always says value error. With the help of user manual figure out the Arduino mapping for PC0 but cannot ...
0
votes
0
answers
119
views
NRF24L01 Module not Working with Raspberry Pi Pico (MicroPython)
I have a Raspberry Pi Pico wired to a NRF24L01 module.
I am trying to send the message "test" from the module, but currently I am simply trying to write the value 0b11 to the register ...
3
votes
1
answer
370
views
micropython aioble esp32: charactrictic.written() never returns (even upon a write)
I am working with ESP32-C3.
I created a BLE GATT Server, I want to exchange data with it bidirectionally.
I am using nRF Connect android app for debugging.
Charactrictic #1 is used to send data from ...
1
vote
1
answer
49
views
Getting the error "“Cannot find reference ‘xbee’ in ´__init__.pyi´" when building micropython Code for Xbee3 Module
I am trying to make a simple script for my Xbee3 module, and I took the code (https://github.com/digidotcom/xbee-python/blob/master/examples/communication/ReceiveDataSample/ReceiveDataSample.py) and I ...
6
votes
1
answer
527
views
In Micropython, how can I guarantee asynchronous tasks being shut down?
Note: despite I'm beginning my question with a microdot example, this is just because I've first observed the later described behavior with an attempt to re-start a microdot server after aborting a ...
0
votes
0
answers
51
views
Issues Fetching Unread Emails from IMAP Server
I am using MicroPython on an ESP8266 to connect to an IMAP server and fetch unread emails. Although I can connect to the server and log in successfully, I’m having trouble detecting new unread emails. ...
-1
votes
2
answers
83
views
ESP8266 is stuck in an infinite socket.accept() loop, i guess?
Ive been working with my ESP8266 and have encountered an issue that seems to be coming from nowhere and being unsolvanle. At least - to me.
Basically I went on with this tutorial on building a simple ...
3
votes
2
answers
155
views
ImportError: can't import name perf_counter. What may be the reason?
I`ve been working on my code for Micropython-flashed ESP8266, and well... this error occured:
from time import perf_counter
ImportError: can't import name perf_counter
I believe that the whole code ...
0
votes
0
answers
39
views
I can't get the program to see my override buttons
I want to be able to press the buttons on the web app to change the lights, but I also want to be able to override the web app with physical buttons to change the LEDs like the web app can. This is a ...