Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • Re: SOLVED: How to restore Serial pins in Python

Thank you, addingCode: import subprocesscommand="pinctrl 14,15 a5"subprocess.call(command, shell=True)after using the pins for other purpose solved the issue on RPi Zero 2W.Statistics: Posted by...

View Article


Python • How to send data from a python program to a smaller 2 inch display?

I am doing a weather display, where it shows me the current weather on a display connected somehow to the Raspberry Pi. Can someone tell me how I transfer the variables from the program onto the small...

View Article


Python • No module named 'rpi_backlight'

I used the lineCode: from rpi_backlight import backlightBut get the errorModuleNotFoundError: No module named 'rpi_backlight'Running python 3, and the library is made for python 3. When I run a pip3...

View Article

Python • Re: How to send data from a python program to a smaller 2 inch display?

I am doing a weather display, where it shows me the current weather on a display connected somehow to the Raspberry Pi. Can someone tell me how I transfer the variables from the program onto the small...

View Article

Python • Re: No module named 'rpi_backlight'

To add a photo, resize it (scale it) to less than 512KB (I use Gimp to do that) maybe 1024 x 1024 pixels, then click the Attachments tab below where you type the text in.Click Add files. select the...

View Article


Python • Re: Send email from python

The text files are not idea, as I don't know if something is wrong with scripts being run unless I check the text filesalso crontab has the "MAILTO" option that I have had sent to a email address...

View Article

Python • Re: Cool Program I Have Created

This looks cool but whether python developed tool are going to service in the fast fledging era of AI. Everyone is talking about computing edge technology in every field of life. I am passionate to...

View Article

Python • Unknown threads running in Python application

Hello everyone. I'm currently working on a python application where I use threading. While I'm running multiple threads in parallel, the main application loop is observing the running threads. In the...

View Article


Python • Re: Unknown threads running in Python application

Are you using something like this? How are you checking the running threads?Code: #!/usr/bin/env python3import threadingfrom time import sleep# global variable 'done' is the trigger to close...

View Article


Python • GPIO busy in Flask Service

Hi guys,I'm facing difficulties with my raspberry pi using the gpiozero library. Here is what I have:I'm running a web application that executes multiple python scripts. I have mechanical buttons that...

View Article

Python • Re: GPIO busy in Flask Service

I'm running bookworm as the os-releaseStatistics: Posted by LuMa97 — Fri Jan 10, 2025 12:58 pm

View Article

Python • Issue with Installing PyCam2 Package and Autoboot Configuration on...

Issue with Installing PyCam2 Package and Autoboot Configuration on Raspberry Pi 4 (8GB RAM)I am currently working with a Raspberry Pi 4 (8GB RAM) and encountered a couple of challenges while trying to...

View Article

Python • Re: Issue with Installing PyCam2 Package and Autoboot Configuration...

Where are you installing the "PyCam2" package from?I have a Pi4 (2GB) with a V2 camera module attached set to stream a video on startup. I use this service fileCode: [Unit]Description=Run Pi Camera as...

View Article


Python • Re: How to send data from a python program to a smaller 2 inch display?

I would solder headers, but there are options without headers.Some companies sell display with USB connection.A DIY solution would be to use a raspberry pico (USB serial) with a display attached....

View Article

Image may be NSFW.
Clik here to view.

Python • Rpi5, pi3d, x11, uggg lol

So I built an automotive digital dashboard system about 7 years ago using an RPI 3B Plus and running PI 3D to handle all of the graphics. I just got my hands on an RPI-5 and did a fresh install of...

View Article


Python • Re: Rpi5, pi3d, x11, uggg lol

Is the question how to run it on startup or something else?Statistics: Posted by neilgl — Sat Jan 11, 2025 7:56 pm

View Article

Python • Raspberry Pi 5 with RC522 |

Hello dear Raspberry Pi Community, I am a total beginner and have connected my Raspberry Pi 5 today for the first time.I got it for the school project, where I have to write a 15-page research paper...

View Article


Python • Re: Raspberry Pi 5 with RC522 |

I couldn't have said it better myself. I am struggling with the exact same problem, and I have searched in all of the same places. I have some python experience, but not nearly enough to build a...

View Article

Python • Ram allocated to /run/shm ?

In my python scripts l use ram by using /run/shm directory.On a pi5 8GB it shows approx 4GB space available in /run/shm on a pi5 16GB approx 8GB.Why only approx 50% of ram ? What determines it and can...

View Article

Python • Re: Ram allocated to /run/shm ?

Can't check right now, but I guess that’s a tmpfs? If so, that defaults to 50% size of available RAM. You can increase that by explicitly setting the size parameter. Probably in /etc/fstab?Statistics:...

View Article
Browsing all 1225 articles
Browse latest View live