Python • Re: ValueError: invalid literal for int() with base 10:
Is it anything to do with solar panels?Statistics: Posted by neilgl — Fri Jan 05, 2024 12:26 am
View ArticlePython • pywheels.org maintenance / down?
Is anyone else having issues with https://www.pywheels.org/ being down right now? I'm getting an error that the servers IP address cannot be found.Statistics: Posted by dis — Fri Jan 05, 2024 6:48 pm
View ArticlePython • Re: pywheels.org maintenance / down?
Seems to be back.Statistics: Posted by dis — Fri Jan 05, 2024 7:13 pm
View ArticlePython • picamera2 capture_array('raw') returns uint8 array
Hi together,I try to get raw bayer data from the camera module 3.I am experimenting with some code derived from the raw.py example (https://github.com/raspberrypi/picamera ... les/raw.py).To my...
View ArticlePython • Showing connected GPIO pins via I2C
Hi there, I've got a script which - via flask - will show which GPIO pins are currently connected to a common ground in a web browser. I've got an I2C display connected, and functioning. However, I'd...
View ArticlePython • MFRC522 RFID Reader + "This channel is already in use" +...
Hey everyone,I am currently trying to set up an MFRC522 RFID reader with my raspberry pi and I'm having some issues.For reference, this is the code I am using:Code: #!/usr/bin/env pythonimport...
View ArticlePython • Real-time problem
Hello, I would like to ask if there is any documentation on how to implement real-time communication in Python between a gateway and multiple nodesStatistics: Posted by Lee123 — Sat Jan 06, 2024 8:02 am
View ArticlePython • Re: Real-time problem
https://pythonprogramming.net/server-ch ... -python-3/Statistics: Posted by ame — Sat Jan 06, 2024 8:20 am
View ArticlePython • Re: MFRC522 RFID Reader + "This channel is already in use"...
Have you added to the python script, after the import statements, this: Code: GPIO.setwarnings(False)Statistics: Posted by neilgl — Sat Jan 06, 2024 10:14 am
View ArticlePython • Kivy, Bleak and async troubles
I am trying to code a remote control with a single button to send the word "toggle" over BLE. I would like to stick to Kivy as the final destination would be porting it to Android with buildozer. I...
View ArticlePython • gpiozero.exc.GPIOPinInUse from imported module
Hi!I´m still relatively new to phyton so there could be an easy answer to this question. I´m making my first project that is (at least for me) a bit larger on my PI. what i´m trying to do is import a...
View ArticlePython • Re: gpiozero.exc.GPIOPinInUse from imported module
I'm not familiar with IEC 61131-3 but what you're doing is not how python is designed to work.Code outside of functions in a python module is expected to be run once, and once only, the first time a...
View ArticlePython • Re: picamera2 capture_array('raw') returns uint8 array
Section 4.2.2.3 in the latest (2023-11-27) Picamera2 manual has some details.https://datasheets.raspberrypi.com/came ... manual.pdfAsking for just a default raw output is getting the new 8 bit...
View ArticlePython • Re: Kivy, Bleak and async troubles
I have never used either so I can't help you. But I think you will get faster response with regards to making these 2 things working together here: https://github.com/hbldh/bleak/issuesStatistics:...
View ArticlePython • Re: Bookworm, 'gpiozero' and 'libgpiod'
Slowly getting there. It seems the 'led.close()' call finds its way to here -https://github.com/gpiozero/gpiozero/blob/master/gpiozero/pins/lgpio.py#L129Code: def close(self): if self.factory._handle...
View ArticlePython • Updating imported variable-values between modules
Hi! I´ll try to explain this question through a example. Well start with three modules, Sensor_Module, Calculate_Module and Master_Module. In Calculate_Module we have a number of sensors measuring...
View ArticlePython • Re: Updating imported variable-values between modules
So I´ll add something that I tried just now. If i call the Update_Enviromental_Variables in Calculate_Module from Master_Module;Code: Master_Environmental_Tulip =...
View ArticlePython • Re: Kivy, Bleak and async troubles [SOLVED]
Thank you memjr.You have made me browse through the issues (again), which inspired me to other approaches and searches.Seems that the coroutines just need some time to breath, so the solution was not...
View ArticlePython • modules and methods...
I am new to RPi and python so please forgive my inexperience.When writing scripts in python the typical format for a command is something like:module.method(stuff)So, for instance a GPIO command for...
View ArticlePython • Re: modules and methods...
Google is a good option. Google "python documentation module_name"Replace module_name with whatever module you want to find, so for RPIO, "python documentation RPIO"Statistics: Posted by memjr — Sun...
View Article