Compare commits
2 Commits
265237d2a2
...
d7debe9f7c
Author | SHA1 | Date | |
---|---|---|---|
d7debe9f7c | |||
258572a5d9 |
4
setup.sh
4
setup.sh
@ -73,14 +73,14 @@ fi
|
||||
|
||||
# Create and activate Python virtual environment
|
||||
cd "$PROJECT_DIR/"
|
||||
chmod 444 ./temp-calc.py ./blinka-test.py
|
||||
chmod 775 ./temp-calc.py ./blinka-test.py
|
||||
python3 -m venv . --system-site-packages
|
||||
echo -e "$line\nVirtual environment created.\n$line\n"
|
||||
echo -e "$line\nActivating virtual environment...\n$line\n"
|
||||
source $PROJECT_DIR/bin/activate
|
||||
|
||||
echo -e "$line\nInstalling dependencies...\n$line\n"
|
||||
pip3 install --upgrade setuptools click adafruit-python-shell adafruit-circuitpython-dht RPi.GPIO adafruit-blinka libgpiod
|
||||
pip3 install --upgrade setuptools click adafruit-python-shell adafruit-circuitpython-dht RPi.GPIO adafruit-blinka board digitalio
|
||||
|
||||
echo -e "$line\nSetting up raspiberry pi...\n$line\n"
|
||||
sudo raspi-config nonint do_i2c 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Specify the pin you'll be connecting the data/signal PIN of DHT11 to here:
|
||||
PIN = 16
|
||||
DPIN = "D" + PIN
|
||||
DPIN = "D" + str(PIN)
|
||||
|
||||
import time
|
||||
from board import PIN # By default I'm using GPIO PIN 16
|
||||
|
Loading…
Reference in New Issue
Block a user