-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
arduino-cli-test.sh
executable file
·45 lines (38 loc) · 1.94 KB
/
arduino-cli-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# arduino-cli installation on ~/bin:
# curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
# test repo:
# https://github.com/kike-canaries/canairio_sensorlib/
arduino-cli config init
# github libraries support
arduino-cli config set library.enable_unsafe_install true
# dependencies
arduino-cli lib install "Adafruit Unified [email protected]"
arduino-cli lib install "Adafruit BME280 [email protected]"
arduino-cli lib install "Adafruit BMP280 [email protected]"
arduino-cli lib install "Adafruit BME680 [email protected]"
arduino-cli lib install "Adafruit SHT31 [email protected]"
arduino-cli lib install "Adafruit [email protected]"
arduino-cli lib install "Adafruit [email protected]"
arduino-cli lib install "Sensirion [email protected]"
arduino-cli lib install "[email protected]"
arduino-cli lib install "[email protected]"
arduino-cli lib install "[email protected]"
arduino-cli lib install "Sensirion I2C [email protected]"
arduino-cli lib install --git-url https://github.com/paulvha/sps30.git
arduino-cli lib install --git-url https://github.com/enjoyneering/AHTxx.git
arduino-cli lib install --git-url https://github.com/hpsaturn/DHT_nonblocking.git
arduino-cli lib install --git-url https://github.com/jcomas/CM1106_UART.git
arduino-cli lib install --git-url https://github.com/paulvha/SN-GCJA5.git
# target tag:
arduino-cli lib install --git-url https://github.com/kike-canaries/canairio_sensorlib.git#v0.6.4
arduino-cli config set board_manager.additional_urls\
https://arduino.esp8266.com/stable/package_esp8266com_index.json\
https://dl.espressif.com/dl/package_esp32_index.json
arduino-cli core update-index
# esp8266 test
arduino-cli core install esp8266:esp8266
arduino-cli compile --fqbn esp8266:esp8266:nodemcuv2 --build-property "build.extra_flags=-DCORE_DEBUG_LEVEL=0" examples/basic
# esp32 test
#arduino-cli core install esp32:esp32
#arduino-cli compile --fqbn esp32:esp32:ttgo-t7-v14-mini32 --build-property "build.extra_flags=-DCORE_DEBUG_LEVEL=0" examples/basic