Quantcast
Browsing all 1241 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Python • Re: How to use background images to change buttons status in tkinter...

And here are my 3 created GUI images (800 x 480px) showing the different buttons status:GUI with button in the default status:GUI with the buttons in "Clicked status":and the third image showing the...

View Article


Python • config.txt moved from /boot to /boot/firmware

Good Day all,I desperately need some help here and I believe I can sort this thing out.I am using a Raspberry pi 5 and running the latest Rasbian/Bookworm OS. I used it to run PWM programs using...

View Article


Python • Re: config.txt moved from /boot to /boot/firmware

Since RPiOS Bookworm was released config.txt has always been in /boot/firmware. Bullseye and earlier had it in /boot.In early releases of Bookworm /boot/config.txt was a symbolic link to...

View Article

Image may be NSFW.
Clik here to view.

Python • Very simple gpiozero button code not working

I am utterly confused. I'm using this code from gpiozero:Code: from gpiozero import Buttonbutton = Button(22)button.wait_for_press()print("The button was pressed!")When I run it, it always,...

View Article

Python • Re: Very simple gpiozero button code not working

Are you using the correct GPIO pin i.e. GPIO22 (physical 15) - see https://pinout.xyz/#For gpiozero "This library uses Broadcom (BCM) pin numbering for the GPIO pins, as opposed to physical...

View Article


Python • DeepSeek AI developed Flask app to control a Pimoroni pantilthat...

GitHub Repo: https://github.com/pageauc/flask-pantilt-camThis program is a python3 flask web server application that allows control of a pimoroni pantilthat with a picamera2 compatible camera module...

View Article

Python • import file not found on path

i'm dipping my toe into the world of user written import files to try and clean up my code to make it more readable. Once a function is working to my liking I plan to move it over to the import file...

View Article

Python • Re: import file not found on path

Try:Code: from Incl_SSCE import adderimport sysprint(sys.path)x=1y=20z=30a=adder(x,y,z)orCode: import Incl_SSCEimport sysprint(sys.path)x=1y=20z=30a=Incl_SSCE.adder(x,y,z)Statistics: Posted by rpdom —...

View Article


Image may be NSFW.
Clik here to view.

Python • Raspberry Pi Scripts stops running after a while.

Hi everyone, This is 2 issues but they are both connectedContext: I have a raspberry pi (3b+) that measures temperature, pressure and humidity outside ('weatherpi'), inside I have a another raspberry...

View Article


Python • Re: Raspberry Pi Scripts stops running after a while.

Even if no one has any idea, how could i set up error catching to see why it does or some way of if it stops, it can restart it's self. Shell scripts or Python scripts or what?Crude debugging is just...

View Article

Python • Re: DeepSeek AI developed Flask app to control a Pimoroni pantilthat...

Thats niceStatistics: Posted by neilgl — Wed Apr 09, 2025 6:51 pm

View Article

Python • Different behaviour with Thonny and running from main on boot

Hey!I have a main.py script that toggles the pins of a keyboard matrix to detect button presses on a mobile then toggles them again to use switches on an SPI channel to short the connections on the...

View Article

Python • Re: Different behaviour with Thonny and running from main on boot

One way to get an idea of what it is doing is to blink the onboard LED of the Pico2 at various points in the code.Statistics: Posted by neilgl — Thu Apr 10, 2025 8:29 am

View Article


Python • Re: Reset gpio output when test is finished

I use a function to clean out things.Code: def My_Exit(): Pin(27, mode=Pin.OUT, value=0)# Pin(15, Pin.IN, value=0)# print("Stopping LED") Pin(27, 0)# print("Stopping LCD")# lcd.clear()#...

View Article

Python • Getting Issue in connecting WT905-485 to Pi5 with Python code

Hi there,Here is my python code to read the sensor data but not getting any data.Please help me out in getting the corrected code.Code: import serialimport serial.tools.list_portsimport structimport...

View Article


Python • Re: Getting Issue in connecting WT905-485 to Pi5 with Python code

What issue are you seeing?There have been reports of issues with serial in the latest Pi OS updates.https://forums.raspberrypi.com/viewtopic.php?t=386387Statistics: Posted by rpiMike — Sun Apr 13,...

View Article

Python • FSK communication using sx1276 on rpi 4

Hello, I would like to set up FSK communication using module RA-01H based on SX1276 between raspberry pi 4 and esp32. It seems that it is necessary to use registers, since I haven't found any library...

View Article


Python • Trouble with GPIO Looping and Edge Detection

SOLVEDI am building a wardriving rig with a Raspberry Pi4 and am attempting to set up a button and LEDs. I have about 8 months of Python experience. On startup I want the blue LED to stay on the...

View Article

Python • bullseye not able to import args

Updating from stretch to bullseye. There is a newer version of Python. Specifically 3.5.3 to 3.9.2. In the stretch version I am able to trigger my gpio with a Python file which includes the lines:>...

View Article

Python • Re: bullseye not able to import args

from utils import args does not refer to a standard python feature, nor any common library I can find. I do not think it has changed between versions, I think you have forgotten where you got it from,...

View Article
Browsing all 1241 articles
Browse latest View live