Python • 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: 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 ArticlePython • 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 ArticlePython • 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 ArticlePython • 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 ArticlePython • 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 ArticlePython • 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 ArticlePython • Re: DeepSeek AI developed Flask app to control a Pimoroni pantilthat...
Thats niceStatistics: Posted by neilgl — Wed Apr 09, 2025 6:51 pm
View ArticlePython • 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 ArticlePython • 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 ArticlePython • 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