Skip to content

project-mahiwa/mahiwa-backend

Repository files navigation

mahiwa-backend

environment

❯ pio --version
PlatformIO Core, version 6.1.11

ESP系であればframeworkにESP-IDFも指定できるが,今回は他のマイコンも対象としたいのでframeworkはArduinoとする.

getting started

Install platformio

See here : https://docs.platformio.org/en/latest/core/installation/index.html

brew

brew install platformio

Arch Linux

yay -S platformio-git

Install repository

git clone --recursive https://github.com/project-mahiwa/mahiwa-backend
cd mahiwa-backend
pio run -t upload -e m5stack-atoms3
  • pio runでライブラリの依存は自動解決してくれる

development

serial monitor

https://docs.platformio.org/en/stable/core/userguide/device/cmd_monitor.html

pio device monitor -b 115200
  • -p select a device

GUI

https://docs.platformio.org/en/stable/core/userguide/cmd_home.html

pio home

static analysis

https://docs.platformio.org/en/stable/core/userguide/cmd_check.html

pio check

test

https://docs.platformio.org/en/stable/core/userguide/cmd_test.html

pio test

update

update libraries https://docs.platformio.org/en/stable/core/userguide/cmd_update.html

pio update

update pip core https://docs.platformio.org/en/stable/core/userguide/cmd_upgrade.html

pio upgrade

check USB devices

https://docs.platformio.org/en/stable/core/userguide/device/cmd_list.html

pio device list

debug

https://docs.platformio.org/en/stable/core/userguide/cmd_debug.html

pio debug