New answers tagged python
0
votes
Starting python script in a virtual environment using cron
Upon further digging, I found this works:
/home/mipi/venv/bin/python /home/mipi/Startup/Startup.py
1
vote
Accepted
Using Python Virtual Environments
Virtual environments have been part of python for some time but little used by ordinary users.
Users can no longer install libraries directly into the system version of Python since the advent of ...
0
votes
Using GPIOZERO button for 2 functions (Long/Short press )
I solved it like this:
from gpiozero import Button
from signal import pause
def buttonHandle(pin):
if buttonB.is_pressed and not buttonA.is_pressed: # just button B pressed:
print("...
Top 50 recent answers are included
Related Tags
python × 3216raspbian × 594
gpio × 532
pi-3 × 294
rpi.gpio × 253
pi-2 × 146
serial × 143
camera × 129
i2c × 119
sensor × 119
opencv × 117
python-3 × 113
pi-4 × 97
bluetooth × 95
boot × 92
raspicam × 90
audio × 83
led × 82
pi-3b+ × 73
pwm × 69
pigpio × 68
cron × 67
usb × 65
spi × 65
arduino × 65