Compare commits

..

No commits in common. "d7debe9f7c69f5526209659946258c81a941b25a" and "265237d2a2a56dba6cf672a0db24deb91cfd7715" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -73,14 +73,14 @@ fi
# Create and activate Python virtual environment
cd "$PROJECT_DIR/"
chmod 775 ./temp-calc.py ./blinka-test.py
chmod 444 ./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 board digitalio
pip3 install --upgrade setuptools click adafruit-python-shell adafruit-circuitpython-dht RPi.GPIO adafruit-blinka libgpiod
echo -e "$line\nSetting up raspiberry pi...\n$line\n"
sudo raspi-config nonint do_i2c 0

View File

@ -1,6 +1,6 @@
# Specify the pin you'll be connecting the data/signal PIN of DHT11 to here:
PIN = 16
DPIN = "D" + str(PIN)
DPIN = "D" + PIN
import time
from board import PIN # By default I'm using GPIO PIN 16