Compare commits
No commits in common. "d7debe9f7c69f5526209659946258c81a941b25a" and "265237d2a2a56dba6cf672a0db24deb91cfd7715" have entirely different histories.
d7debe9f7c
...
265237d2a2
4
setup.sh
4
setup.sh
@ -73,14 +73,14 @@ fi
|
|||||||
|
|
||||||
# Create and activate Python virtual environment
|
# Create and activate Python virtual environment
|
||||||
cd "$PROJECT_DIR/"
|
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
|
python3 -m venv . --system-site-packages
|
||||||
echo -e "$line\nVirtual environment created.\n$line\n"
|
echo -e "$line\nVirtual environment created.\n$line\n"
|
||||||
echo -e "$line\nActivating virtual environment...\n$line\n"
|
echo -e "$line\nActivating virtual environment...\n$line\n"
|
||||||
source $PROJECT_DIR/bin/activate
|
source $PROJECT_DIR/bin/activate
|
||||||
|
|
||||||
echo -e "$line\nInstalling dependencies...\n$line\n"
|
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"
|
echo -e "$line\nSetting up raspiberry pi...\n$line\n"
|
||||||
sudo raspi-config nonint do_i2c 0
|
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:
|
# Specify the pin you'll be connecting the data/signal PIN of DHT11 to here:
|
||||||
PIN = 16
|
PIN = 16
|
||||||
DPIN = "D" + str(PIN)
|
DPIN = "D" + PIN
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from board import PIN # By default I'm using GPIO PIN 16
|
from board import PIN # By default I'm using GPIO PIN 16
|
||||||
|
Loading…
Reference in New Issue
Block a user