update
This commit is contained in:
21
README.md
21
README.md
@@ -12,7 +12,7 @@ git config --global user.email "paulvuarambon@gmail.com"
|
||||
git config --global user.name "PaulVua"
|
||||
sudo gh repo clone aircarto/moduleair_pro_4g /var/www/moduleair_pro_4g
|
||||
sudo mkdir /var/www/moduleair_pro_4g/logs
|
||||
sudo touch /var/www/moduleair_pro_4g/logs/app.log /var/www/moduleair_pro_4g/logs/loop.log matrix/input_NPM.txt matrix/input_MHZ16.txt
|
||||
sudo touch /var/www/moduleair_pro_4g/logs/app.log /var/www/moduleair_pro_4g/logs/loop.log /var/www/moduleair_pro_4g/matrix/input_NPM.txt /var/www/moduleair_pro_4g/matrix/input_MHZ16.txt /var/www/moduleair_pro_4g/wifi_list.csv
|
||||
sudo cp /var/www/moduleair_pro_4g/config.json.dist /var/www/moduleair_pro_4g/config.json
|
||||
sudo chmod -R 777 /var/www/moduleair_pro_4g/
|
||||
```
|
||||
@@ -53,6 +53,25 @@ www-data ALL=(ALL) NOPASSWD: /usr/bin/ssh
|
||||
www-data ALL=(ALL) NOPASSWD: /usr/bin/python3 *
|
||||
```
|
||||
|
||||
## I2C
|
||||
|
||||
Decibel meter, BME280 and the RTC module (DS3231) is connected via I2C.
|
||||
Need to activate by modifying `sudo nano /boot/firmware/config.txt`
|
||||
|
||||
```
|
||||
dtparam=i2c_arm=on
|
||||
```
|
||||
|
||||
And authorize access to `/dev/i2c-1`.
|
||||
|
||||
```
|
||||
sudo chmod 777 /dev/i2c-1
|
||||
```
|
||||
|
||||
Attention: sometimes activation with config.txt do not work, you need to activate i2c with `sudo raspi-config` and go to "Interface" -> I2C -> enable.
|
||||
It is possible to manage raspi-config only with cli: `sudo raspi-config nonint do_i2c 0`
|
||||
I2C addresses: use `sudo i2cdetect -y 1` to check the connected devices
|
||||
|
||||
## Matrix LED
|
||||
|
||||
### Library
|
||||
|
||||
Reference in New Issue
Block a user