Python • Checking Power State & Flow Control for SIMN7600 GPS/4G HAT
I wish I could post a topic in more than one board. This could easily go in the HAT or Interfacing board. I've never really done anything with a pi other than load Lakka or RetroPie on it, so using a...
View ArticlePython • Re: Checking Power State & Flow Control for SIMN7600 GPS/4G HAT
I wish I could post a topic in more than one board. This could easily go in the HAT or Interfacing board. No need. In fact it's discouraged as it causes problems with keeping track of answers, and...
View ArticlePython • Python Code Issue
I have some python code for my sound recorder and I am using the audacity script-mod-pipe. I have some python but it's 2 projects. (1 for recording and 1 for stopping.) My goal is to record the audio...
View ArticlePython • Re: Python Code Issue
We don't usually post twice about the same subject ? viewtopic.php?t=366314Statistics: Posted by neilgl — Sun Feb 25, 2024 7:12 pm
View ArticlePython • pylint errors on normal "import RPi.GPIO"
First of all this is probably not the simplest way to bleed all the air from a solenoid valve,assuming a program which used it crashed before calling GPIO.cleanup().But it works.The question is :...
View ArticlePython • VLC Python library and GPIO-attached screens
I have a Raspberry Pi Zero with a GPIO-attached LCD. I have a Python program that incorporates the vlc library to play a video.If I launch the program from a ~/.profile file, the video will play on...
View ArticlePython • Re: pylint errors on normal "import RPi.GPIO"
You're confusing it by calling it GPIO.try naming it something else, like gpio in lowercase Code: import RPI.GPIO as gpioThen replace all the other upper case GPIO to gpio in the rest of the code to...
View ArticlePython • Re: How do I fix this Python code?
I added the Code: try: and it didn't say "syntax error" but when I ran the code it recorded fine but when I stopped it, it still was recording. It was supposed to stop recording when I stopped the...
View ArticlePython • Re: Audacity Export Python Code
Here's the whole code:Code: import sysimport osimport sysif sys.platform == 'win32': print("pipe-test.py, running on windows") TONAME = '\\\\.\\pipe\\ToSrvPipe' FROMNAME = '\\\\.\\pipe\\FromSrvPipe'...
View ArticlePython • Re: VLC Python library and GPIO-attached screens
I am not familiar with VLC but the symptoms you describe point to: Running manually finds you LCD which may be the video screen assigned for the sessionRunning in SYSTEMD wrings to the SYSOUT log...
View ArticlePython • Re: Opening Network Settings GUI from Python Script on Raspberry Pi...
Have you tried this:Code: sudo nmtuiStatistics: Posted by klricks — Tue Feb 27, 2024 5:56 pm
View ArticlePython • Has anyone managed to get Adafruit-blinka to work on a Pi 5?
Hi guys. I'am trying to use an SSD1306 OLED display with my Pi 5. Actually I have one on a Waveshare Pioneer600 hat and one separated - neither of them works. Because no matter what I do - I always...
View ArticlePython • Re: Has anyone managed to get Adafruit-blinka to work on a Pi 5?
Hi guys. I'am trying to use an SSD1306 OLED display with my Pi 5. Actually I have one on a Waveshare Pioneer600 hat and one separated - neither of them works. Because no matter what I do - I always...
View ArticlePython • [Errno 2] No such file or directory Error When Switching from Pi 4B...
Hello everyone,I recently transitioned from a standard Raspberry Pi 4B to a Compute Module 4 (CM4), and I'm encountering a perplexing issue. Despite ensuring that the script paths are identical on...
View ArticlePython • Re: [Errno 2] No such file or directory Error When Switching from Pi...
Code: import RPi.GPIO as GPIOimport spidevimport tracebackclass TECController: CS_PIN = 17 # 根据你的硬件配置 SPI_BUS = 1 SPI_DEVICE = 1 # 温度到DAC值的映射 temperature_to_dac_value = { 40: 5738, 41: 5595, 42: 5441,...
View ArticlePython • Sort data in Excel
Hi.I have a excel file where I add data in. I want to sort the data on the first column, so all other cells are changed too. I have tried to fix it by using the below code, but I don't think it is...
View ArticlePython • GPIO Transition Issue from Raspberry Pi 4B to CM4 - Problem with...
Hello Raspberry Pi Community,I am working on transitioning my scientific instrument project from a standard Raspberry Pi 4B to a Compute Module 4 (CM4). In this project, I've traditionally used the...
View ArticlePython • Re: GPIO Transition Issue from Raspberry Pi 4B to CM4 - Problem with...
Following the initial concerns, I have conducted a more detailed isolated test specifically for GPIO4, aiming to eliminate any external factors that might be affecting its performance. Here are the...
View ArticlePython • PI Pico Vsys measurement
Measurement of Vsys using AC3 seems to stop working after setting the internal LED highHere is the python code:import machineimport utimeadcpin = machine.Pin(29, machine.Pin.IN) # ensure ADC3 pin is...
View ArticlePython • Re: Getting intermittent errno 16 "resource busy" with USB...
Thanks for the advice. It's still acting unreliably, but I'll leave in the while loop since it seems like good practice.Statistics: Posted by Wimbley — Sat Mar 02, 2024 12:40 am
View Article