Python • Re: Raspberry Pi 5 - "out of memory error"
Thank you! Worked like a charm! I'm using the following library to control WS2812 leds on a Pi5 via SPI:https://github.com/niklasr22/rpi5-ws2812Statistics: Posted by Hasitha — Thu Mar 27, 2025 11:30 pm
View ArticlePython • Re: Creating Separate PWM Objects in Multiple Threads
To use a single PWM object in multiple threads, you would need to employ a locking mechanism to control access to the PWM object. Here's a general approach based on the text book <MicroPyhon...
View ArticlePython • Re: opening in every screen one url
Thank u brother for the reply of course can give u more details about itI am using raspberry pi 4OS = Raspbain GNU/LinuxVersion = 12 bookwormID = raspbainID_LIKE= debainI am using X11 but I don't mind...
View ArticlePython • Re: Environment is externally managed?
i think the best option is downgrading then since i do quite require telebot.Does anyone know how to downgrade or have any option for OS changes?Statistics: Posted by QueasyCarBoy — Fri Mar 28, 2025...
View ArticlePython • Re: problem with flask app.py
Hi there!From what you described, it doesn’t sound like the issue stems from any specific coding errors—looking over app.py, nothing seems overtly “wrong”—but rather from the way the Flask application...
View ArticlePython • Raspberry pi Bluetooth
Hi , I am writing a code for raspberry pi which makes the Pi's bluetooth visible to everyone and it would connect automatically to your phone without connecting the pi to your monitor . 1)Could you...
View ArticlePython • Re: Raspberry pi Bluetooth
try this... sudo pip3 install bluezeroStatistics: Posted by pfharlock — Sat Mar 29, 2025 1:55 pm
View ArticlePython • Can't get pyinput to receive events from second bluetooth device.
Sorry about the long post but I think I need to put as much info in as possible.I have two bluetooth devices that send keyboard presses and mouse events. One of them works with pyinput and the other I...
View ArticlePython • Re: Can't get pyinput to receive events from second bluetooth device.
evtest reads physical events from the Linux kernel. I think pynput reads symbolic events via your windowing system. Install packages x11-utils and wev, and check how xev and wev see your events.I get...
View ArticlePython • Understanding PIP Import Errors
I'm looking for pointers to resources to help me be more self sufficient in resolving errors on PIP imports. I've already posted my current issue on the Python Forum at...
View ArticlePython • Re: Understanding PIP Import Errors
Are you using freeze to build your requirements file? I had spotted some time ago that this method often created longer lists than needed. Later I found out that it may include libraries that where...
View ArticlePython • How to install dht22 (am2302) digital temperature humidity sensor on...
Hello people, I am trying to setup a dht22 (am2302) digital temperature humidity sensor on raspberry pi3 so the temperature and Humidity is displayed on a GUI configured on a touchscreen display...
View ArticlePython • Re: How to install dht22 (am2302) digital temperature humidity...
On Bookworm it s now preferred to use a Python venv if you are going to use pip to install any libraries.The link in the text you quoted gives some information about how to do itFor more information...
View ArticlePython • Pi5 - Unable to open USB port with Pyserial
I'm using Pyserial to manage serial communication over USB (FTDI drivers) to a Dynamixel U2D2 controller. Using the bookworm 64-bit OS on a Pi4B works perfectly, but on a Pi5, the serial.Serial(port,...
View ArticlePython • SK6812RGBW or WS2812 support for RPi5?
Hi there,has anyone played around with PIOLib, like in the example fromhttps://www.raspberrypi.com/news/piolib ... o-control/?The thing is, that I would like to "easily" turn on LEDs on my...
View ArticlePython • Re: SK6812RGBW or WS2812 support for RPi5?
I used the PIOlib example a bit, then moved over to Pico which was a better fit for my use case (low power).I didn't have any problems using PIOlib on my Pi 5.Statistics: Posted by rpdom — Thu Apr 03,...
View ArticlePython • Re: Pi5 - Unable to open USB port with Pyserial
Which device are you using on the Pi5 - /dev/serial0 or /dev/ttyAMA0 etc.?Statistics: Posted by neilgl — Thu Apr 03, 2025 6:48 pm
View ArticlePython • Re: picamera2 not working in venv
When you created your venv did you do so with the --system-site-packages command line argument?No I used the venv/bin/activateStatistics: Posted by Manasrpi5 — Thu Apr 03, 2025 8:59 pm
View ArticlePython • PWM output problem after upgrade OS.
Test on Raspberry Pi 5B, I use this code works fine:Code: from rpi_hardware_pwm import HardwarePWMpwm0 = HardwarePWM(pwm_channel = 0, hz = 1000, chip = 2)after run:Code: sudo apt upgraderise exception...
View ArticlePython • How to use background images to change buttons status in tkinter GUI?
Hello people, I currently have a GUI to control a microgreen farm, it uses the standard tkinter buttons, but would like to improve its look by using background images for the GUI instead, where one...
View Article