forked from pu2clr/RDA5807
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_libraries_and_boards.sh
92 lines (80 loc) · 4.24 KB
/
config_libraries_and_boards.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
<<TodoBefore
This script runs on Linux and MacOS and it is useful to install the basic enviroment to develop
applications (receivers) using the PU2CLR Arduino Library.
ATTENTION: Please, do not run it if you do not know what are you doing.
Please, check the comments above
TodoBefore
# go to home
cd ~
# Download and install the arduino command line - arduino-cli
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
# It should be installed in the ~/bin folder
export PATH=~/bin:$PATH
# Start the arduino-cli configuration
arduino-cli config init
# Add all boards used by the examples (ATmega, Attiny, ESP32, STM32 etc) to the board list
arduino-cli config set board_manager.additional_urls http://arduino.esp8266.com/stable/package_esp8266com_index.json \
http://dan.drown.org/stm32duino/package_STM32duino_index.json \
http://drazzy.com/package_drazzy.com_index.json \
https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json \
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json \
https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json \
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json \
https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json \
https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json \
https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json \
https://raw.githubusercontent.com/DavidGuo-CS/OSOYOO_Arduino/main/package_osoyoo_boards_index.json \
https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json \
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json \
https://raw.githubusercontent.com/dbuezas/lgt8fx/master/package_lgt8fx_index.json \
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json \
https://raw.githubusercontent.com/nulllaborg/arduino_nulllab/master/package_nulllab_boards_index.json \
https://www.pjrc.com/teensy/package_teensy_index.json
# Update the index of boards that can be installed
arduino-cli core update-index
echo "This may take several minutes or hours. Please wait!"
echo "Installing the libraries used by the examples implemented in this Library"
#uncomment the lines if you and to include more libraries
arduino-cli lib install "Adafruit BusIO"
arduino-cli lib install "Adafruit SH110X"
arduino-cli lib install "Adafruit SSD1306"
arduino-cli lib install "TM1638lite"
arduino-cli lib install "Adafruit ST7735 and ST7789 Library"
arduino-cli lib install "Adafruit PCD8544 Nokia 5110 LCD library"
# arduino-cli lib install "Adafruit TouchScreen"
# arduino-cli lib install "ES32Lab"
# arduino-cli lib install "Etherkit Si5351"
# arduino-cli lib install "FlashStorage_SAMD"
arduino-cli lib install "LiquidCrystal"
# arduino-cli lib install "LiquidCrystal I2C"
arduino-cli lib install "MCUFRIEND_kbv"
arduino-cli lib install "TFT_22_ILI9225"
# arduino-cli lib install "TFT_eSPI_ES32Lab"
arduino-cli lib install "Tiny4kOLED"
arduino-cli lib install "TinyOLED-Fonts"
arduino-cli lib install "FastLED"
arduino-cli lib install "RotaryEncoder"
echo "----------------------------------------------------"
echo "Installing the library Adafruit_SH1106 via github repository"
export ARDUINO_LIBRARY_ENABLE_UNSAFE_INSTALL=true
arduino-cli lib install --git-url https://github.com/wonho-maker/Adafruit_SH1106
echo "----------------------------------------------------"
# uncomment the lines below if you want some additional boards
echo "Installing the boards"
arduino-cli core install arduino:avr
arduino-cli core install lgt8fx:avr
arduino-cli core install MiniCore:avr
arduino-cli core install arduino:sam
arduino-cli core install esp32:esp32
arduino-cli core install esp8266:esp8266
arduino-cli core install stm32duino:STM32F1
# arduino-cli core install stm32duino:STM32F4
# arduino-cli core install STM32:stm32
# arduino-cli core install STMicroelectronics:stm32
# arduino-cli core install rp2040:rp2040
# arduino-cli core install Seeeduino:samd
arduino-cli core install ATTinyCore:avr
# arduino-cli core install MegaCore:avr
# arduino-cli core install MightyCore:avr
# arduino-cli core install teensy:avr