PlatformIO で git HEAD な esp8266/Arduino を使いたい。
オフィシャルドキュメントのUsing Arduino Framework with Staging versionに載ってるやり方通り。 ~/.platformio/ 以下のを置き換えてしまうという割と強引な方法でできる。
rm -rf ~/.platformio/packages/framework-arduinoespressif8266
git clone https://github.com/esp8266/Arduino ~/.platformio/packages/framework-arduinoespressif8266
cat << EOF > ~/.platformio/packages/framework-arduinoespressif8266/package.json
{
"description":"Arduino Wiring-based Framework (ESP8266 Core)",
"name":"framework-arduinoespressif8266",
"system":"all",
"url":"https://github.com/esp8266/Arduino",
"version":"1.20300.0"
}
EOF