Skip to content
Snippets Groups Projects
Commit abad8f7f authored by thiebolt's avatar thiebolt
Browse files

extended deploy script with libraries extensions now automatically copied

parent b38d1835
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,9 @@ All this work was undertaken at Université Toulouse 3 / IRIT laboratory in the ...@@ -11,6 +11,9 @@ All this work was undertaken at Université Toulouse 3 / IRIT laboratory in the
![neOSensorv5](/images/neOSensorV5.jpg) ![neOSensorv5](/images/neOSensorV5.jpg)
## NEWS ## ## NEWS ##
* **[Aug.21]** added support for digital inputs (PIR & switches)
introduced the cooldown approach and data integration
... means that we'll only send data when they differ from the previously sent
* **[Jun.21]** added KiCad PCB for LoRaWAN V2 (Heltec CubeCell) * **[Jun.21]** added KiCad PCB for LoRaWAN V2 (Heltec CubeCell)
* **[Apr.21]** added support for 3 NTP servers + NTP from DHCP to lwip. Have a look to `arduinoIDE_esp32_boards/README.md` * **[Apr.21]** added support for 3 NTP servers + NTP from DHCP to lwip. Have a look to `arduinoIDE_esp32_boards/README.md`
added KiCad PCB for neOSensor v5.1 (ESP32 based) added KiCad PCB for neOSensor v5.1 (ESP32 based)
...@@ -33,11 +36,11 @@ The board features four specific sensors able to measure NO2, CO, CH20, NO2 alte ...@@ -33,11 +36,11 @@ The board features four specific sensors able to measure NO2, CO, CH20, NO2 alte
## Getting started ## ## Getting started ##
First of all, you ought to install esp32, esp8266 or CubeCell support in your Arduino IDE. First of all, you ought to install esp32, esp8266 or CubeCell support in your Arduino IDE.
| Device | Arduino Board Manager json file | | Device | Arduino Board Manager json file |
|----------|---------------------------------------------------------------------------------------------| |----------|------------------------------------------------------------------------------------------------------------|
| esp8266 | https://arduino.esp8266.com/stable/package_esp8266com_index.json | | esp8266 | https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| esp32 | https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | | esp32 | https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| CubeCell | https://resource.heltec.cn/download/package_CubeCell_index.json | | CubeCell | https://github.com/HelTecAutomation/CubeCell-Arduino/releases/download/V1.3.0/package_CubeCell_index.json |
Then, run script `./deploy.sh` and boards will get added to your Arduino boards list :) Then, run script `./deploy.sh` and boards will get added to your Arduino boards list :)
......
#!/bin/bash
#
# neOCampus operation
#
# Deploying specific settings for board
#
# F.Thiebolt aug.21 initial release
#
#set -x
# checks
[ $# -lt 1 ] && { echo -e "\n###ERROR missing base dir parameter !" >&2; exit 1; }
[ -d $1 ] || { echo -e "\n###ERROR non existing directory '$1'!" >&2; exit 1; }
echo -e "Copying additional board files ..."
# copying files
cp -af opt.h $1/include/lwip/lwip/
[ $? -ne 0 ] && { echo -e "\n###ERROR copying some files to '$1/include/lwip/lwip/'" >&2; exit 1; }
chmod a+r $1/include/lwip/lwip/opt.h
cp -af *.a $1/lib/
[ $? -ne 0 ] && { echo -e "\n###ERROR copying some files to '$1/lib/'" >&2; exit 1; }
chmod a+r $1/lib/*.a
#set +x
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
# Global defs # Global defs
ESP32_REV=${ESP32_REV:-"1.0.6"} ESP32_REV=${ESP32_REV:-"1.0.6"}
ESP8266_REV=${ESP8266_REV:-"2.7.1"} ESP8266_REV=${ESP8266_REV:-"2.7.1"}
CUBECELL_REV=${CUBECELL_REV:-"1.2.0"} CUBECELL_REV=${CUBECELL_REV:-"1.3.0"}
# #
...@@ -79,6 +79,15 @@ function boards_install() { ...@@ -79,6 +79,15 @@ function boards_install() {
[ $? -ne 0 ] && { echo -e "\n### ERROR while copying '${local_file}' file to '${SDK_DIR}' directory ... aborting!" >&2; exit 1; } [ $? -ne 0 ] && { echo -e "\n### ERROR while copying '${local_file}' file to '${SDK_DIR}' directory ... aborting!" >&2; exit 1; }
echo -e "\tsuccessfully installed local file '${_local_file}'" echo -e "\tsuccessfully installed local file '${_local_file}'"
done done
#
# execute local_deploy script if any
if [ -x ${SRC_DIR}/local_deploy.sh ]; then
echo -e "# execute local_deploy script #"
echo -e "# #"
( cd ${SRC_DIR}; source local_deploy.sh ${SDK_DIR}/tools/sdk; )
fi
echo -e "# #" echo -e "# #"
echo -e "# -------------------------------------------------------- #" echo -e "# -------------------------------------------------------- #"
......
...@@ -975,6 +975,7 @@ void setup() { ...@@ -975,6 +975,7 @@ void setup() {
_known = true; _known = true;
} }
// add test for others modules ... // add test for others modules ...
// did the i2c deice has been identified ? // did the i2c deice has been identified ?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment