yutotnh / spirit

モータードライバ用ライブラリ
https://yutotnh.github.io/spirit/
MIT License
2 stars 2 forks source link

Feature: Arduinoでビルドする #88

Closed yutotnh closed 1 year ago

yutotnh commented 1 year ago

なぜ機能が欲しいのか 現状、Mbed と 普通のGCCでビルドチェックをしているけど、ArduinoでのビルドチェックをしてArduinoで使えない機能を使っているということを早めに知って修正したいから

提案の説明 Arduinoでビルドする

多分Arduino CLIというのを使う?

その他 今後調査します

yutotnh commented 1 year ago

Arduino UnoといったAVRのマイコンの機種はC++の標準ライブラリが利用できないので、現状では非対応になります。

ESP32やSTM32ではArduinoでもC++の標準ライブラリを利用可能なようでした。

yutotnh commented 1 year ago

install & setup

curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh \
arduino-cli config init \
arduino-cli config add board_manager.additional_urls https://dl.espressif.com/dl/package_esp32_index.json \
arduino-cli core update-index \
arduino-cli core install esp32:esp32

new sketch

arduino-cli sketch new .

compile

arduino-cli compile --fqbn esp32:esp32:esp32