#!/bin/bash

arduino-cli update
arduino-cli upgrade
arduino-cli lib install M5Unified
arduino-cli core install esp32:esp32
# arduino-cli core install esp32:esp32@2.0.17 --config-file arduino-cli.yaml

# 確認
arduino-cli board listall | grep StickCPlus
arduino-cli core list

# Optional for IRsend samples
arduino-cli lib install IRremoteESP8266
arduino-cli lib install WiFi HttpClient
arduino-cli lib install Regexp Dictionary
arduino-cli lib install ArduinoJson
#arduino-cli lib install WiFiMulti_Generic
arduino-cli lib install "Adafruit SHT31 Library"
arduino-cli lib install "Adafruit BMP280 Library"
# arduino-cli lib install M5StickCPlus2 # M5Unified を使うので不要
arduino-cli lib install TFT_eSPI

## You can find other libraries as follows.
# arduino-cli lib search [keyword]
## if you get too much candidates, use grep to filter 
# arduino-cli lib search [keyword] | grep -e "^Name"

# Finally, just show board list
echo "(for Windows user) 書き込みは主にUSBで行いますので、ネットワークアクセスの許可は、しなくてもよいです。"
echo "(for Windows user) Acceptance of Network setting is not mandatory."

