New answers tagged

1

You could maybe try a web interface with flask if your remote device and controller are both connected to wifi - here's some links to help you with that Intro to flask on raspberry pi Flask video streaming Using GPIO with flask Hope that helps and good luck with your project :)


0

I was able to fix the pip3 install RPi.gpio with this: export CFLAGS=-fcommon pip3 install RPi.GPIO Source: https://www.raspberrypi.org/forums/viewtopic.php?t=289084


0

I found the issue is around the 5v. You can use the 5V from the board to power the LED however the PI still runs at 3.3V logic levels which can lead to odd things happening. I think this explained it well. https://learn.adafruit.com/neopixel-levelshifter Some microcontrollers, such as the Arduino Uno and Adafruit Metro 32u4, run at 5V logic levels, and so ...


-1

Change your print statement to the following: print(f"Accepted connection from {address}") Please check how to print guide from here as well. I would suggest learning and using f-Strings.


0

Worth noting that the accepted answer above by @Milliways is now out of date: As of 2019, activating a Python virtual environment (or its functional equivalent) prior to script execution is one way to obtain a consistent cross-platform and cross-distribution experience. They also state that it is acceptable to point python to python3.


0

Just a few things to try: What do you get if you type python3 --version? I'm thinking it's possible python3/pip3 is mapped to python 3.5 and python/pip is mapped to 3.8. Since we know the version of typing python is 3.8, you could just use pip which should use the same version. When you un the script, are you using sudo? If not, the module should be ...


Top 50 recent answers are included