1,150 questions
0
votes
1
answer
28
views
asyncio.server: how to filter on remote IP-address
I have a Tcp socket server class that is to run in CPython and MicroPython. It does, no problem there. Only I would like to extend its functionality with an IP filter. From an earlier version that ...
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:
...
0
votes
0
answers
20
views
Cannot use APDS9960 sensor with Micropython in ESP32
I am tring to work with APDS9960 sensor with ESP32 in micropython to detect gestures like right, left, up, and down. I cannot use the sensor with micropython. I searched the entire internet and could ...
0
votes
0
answers
55
views
Micropython is HARD
I'm having trouble either controlling the flow, or maybe my math is wrong, but I keep getting stuck in a loop. My code should be getting the temperature of a thermistor (TempF), translate that to a ...
0
votes
1
answer
63
views
Getting a syntax error when importing machine module on raspberry pi pico
After loading micropython on my raspberry pi pico and trying to run a simple blink code on thonny or vs code i get the same error which is the following.
>>> import machine
Traceback (most ...
-1
votes
1
answer
74
views
How to Listen to Firebase Realtime Database as a Stream (Subscription) on ESP32 Micro Controller using MicroPython [closed]
How to Listen to Firebase Realtime Database as a Stream (Subscription) on ESP32 Micro Controller (mini computers) for IOT Projects using MicroPython
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
35
views
How to Set Temperature for a Virtual Tuya Thermostat Using MicroPython? API Token Request Fails (Error 1108: URI Path Invalid)
I'm trying to control the temperature of my virtual Tuya Thermostat using MicroPython. I have already successfully tested the API using Postman. However, when I try to use the same parameters and ...
0
votes
0
answers
19
views
Micropython OR bitshift operations
Trying to modify a driver for a load sense amplifier to work in Micropython. I've gotten rid of the smbus calls replacing them with machine.I2C, but am stuck on the drivers bitshifting operations, ...
0
votes
0
answers
33
views
How do I resolve conflicts Between MicroPython’s FATFS and Zephyr’s FATFS in nRF Connect SDK 2.9.0?
I’m currently integrating MicroPython into my Zephyr-based firmware using the nRF Connect SDK 2.9.0. I’ve encountered a build issue due to duplicate definitions arising from the FATFS implementation. ...
0
votes
1
answer
56
views
Boot time shortening for ESP32 with Micropython
Waking up time tames about seconds!
Helo guys
I am working with few types of ESP32 , S2 mini, C3 zero , C3 super mini and some more. Each one is mounted with the latest Micropython frimware (up to ...
2
votes
2
answers
26
views
micropython on picoboard while loop not working
from picozero import pico_led, Button, LED, Buzzer
from time import sleep
led16 = LED(16)
button12 = Button(12, pull_up = False)
button15 = Button(15, pull_up = False)
buzzer14 = Buzzer(14)
global ...
0
votes
2
answers
166
views
Waveshare RP2350 Touch Lcd 1.28 inch LVGL
Got my hand on a cheap Wavehsare RP2350 Touch LCD 1.28 inch round display, and wondered if I could run LVGL Micropython on It. I'm a newbie.
I tried the official Wavehsare documentation, and didn't ...
0
votes
0
answers
11
views
How can I place and update 2 variables at different locations in a single html doc
I'm new to html and webpages
I have a simple tester html document with two variables at different locations:
testpanel = """<!DOCTYPE html>
<html>
<head> <title&...
0
votes
0
answers
48
views
In Micropython's asyncio, how do I wait for one of two events to be set?
In a MicroPython project, on an ESP32 microcontroller, I have two events that I have created like so:
ev1 = asyncio.Event()
ev2 = asyncio.Event()
Now, in a co-routine, I would like to wait until one ...