Python • Re: Trouble with GPIO Looping and Edge Detection
I see few issues related button debouncing and confirmations that the service is up or down. Of course this is just my opinion 1. A bouncing button/switch can cause this script to fail. 2. When you...
View ArticlePython • ImportError: libGL.so.1: cannot open shared object file: No such...
hi everyone, anis againi'm trying to run this object detection script:Code: import cv2from picamera2 import Picamera2from ultralytics import YOLO# Set up the camera with Picampicam2 =...
View ArticlePython • Re: ImportError: libGL.so.1: cannot open shared object file: No such...
If you're going to post python on here you MUST use [code][/code] tags.That makes the difference between if code-tags == "used": print ("Python code is formatted")else print ("Python code is...
View ArticlePython • attempt to start Python in a virtual environment automatically at...
Hello,I realize there may be a better way to do this, and if so, I want to learn it, but here is what I am trying:I have a Tkinter program that is developed in a Python virtual environment. I start it...
View ArticlePython • Re: attempt to start Python in a virtual environment automatically...
I don't think the Python Org has done a good job of conveying that all you need to do is explicitly run the Python for the VENV. In your caseCode: $ /home/eng/pythonvenv/bin/python...
View ArticlePython • Arduino-Pi Weather Station issue
Good day all. I am currently building a gen 2 weather station, this time using the arduino mega 2560 as the gatherer (no issues) and transmit the data to the Pi 3b+ (issue here). Bullseye is the OS....
View ArticlePython • Re: Arduino-Pi Weather Station issue
Good morning, there is no readline in the arduino code...but for curiosity sake, here is my arduino code, if this will get someone started. I must note it is unfinished as I am currently waiting on my...
View ArticlePython • BNO086 Communication with Raspberry Pi 4 Model B
recently received the BNO086 sensor. I am planning to integrate it into a project using a Raspberry Pi 4 Model B, and I wanted to ask for your recommendation regarding the best communication method...
View ArticlePython • Re: BNO086 Communication with Raspberry Pi 4 Model B
You have to use I2C to set up communication between Raspberry Pi 4 and BNO086 sensor.Statistics: Posted by crugo — Wed Apr 16, 2025 5:42 pm
View ArticlePython • Python string find index
I am attempting to identify the index for the pipe symbols in the given string. For some reason the function keeps returning the index to the first instance only. Consider below:Code: chr2 = "Some...
View ArticlePython • Re: Python string find index
You are starting to look at the index of the "|". You need to start looking 1 pastCode: chr2 = "Some Text | More Text text | still more text | last text"index0 = chr2.find("|")index1 = chr2.find("|",...
View ArticlePython • Re: Python Script- displaying on a hdmi display
Consider using PyGame and Python as that will allow you to render smoothed text to fully fit the screen. That's full screen on a Pi viewed via RDP on Windows and you won't see any desktop, title bar,...
View ArticlePython • Re: Bookworm and Python Text to Speech
Thanks for the help. After reading over your posts and docs, I thought that the 'apt install' looked least painful to add the gTTS library to Python. Sadly, that also generated an error. See...
View ArticlePython • Pynput not working on Raspberry Pi, works fine on Laptop?
Hello,I recently decided to use Pynput for a project on my Zero W 2 Pi in order to control some motors. The motors work with other code, but that code doesn't let me use the arrow keys so I decided to...
View ArticlePython • Re: Pynput not working on Raspberry Pi, works fine on Laptop?
If you post your code using the Code menu choice we can try and help you.Statistics: Posted by DS256 — Tue Apr 22, 2025 11:23 pm
View ArticlePython • Re: 8-color mode only on a MSP3520 LCD (ILI9488 driver)
I thought that the ili9488 only works in 18 bit mode (so it has 50% slower FPS than 16 bit color LCDs).What driver are you using?Have you tried the panel-mipi-dbi-spi driver?...
View ArticlePython • Tkinter Temperature Display
@DougieLawsonBack in 2017, you provided some code in the thread linked below to display a temperature in a Tkinter window from a DS18B20 sensor.https://forums.raspberrypi.com/viewtopic.php?t=200056It...
View ArticlePython • Re: making a data object iterable
I've finally gotten the routine to a place where it does what i wanted it to. I have also learned a great deal.Thanks to all the generous members that helped me out. I have posted the code below along...
View ArticlePython • Re: Tkinter Temperature Display
Which code? The one that displays your IP address or the one that reads a 1-wire temp sensor? The first reads http://httpbin.org/ipThe second reads /sys/bus/w1/devices/ then finds a w1 device under...
View ArticlePython • Installing PyNacl for Rasbery PI OS
I tried installing pynacl using ' pip install pinacl' and would not install. Can pynacl be one of the packages to get installed when python3 is?The error message was:pip install pynaclerror:...
View Article