Skip to content

3110/reterminal-e10XX-platformio-boilerplate-code

Repository files navigation

PlatformIO IDE向けSeeed reTerminal E1001/E1002定型コード

PlatformIO IDE環境でreTerminal E1001/E1002用のコードをコンパイルできる環境です。

platformio.iniの設定

まずextra_configsでビルドするサンプルプログラムを選択します。

[platformio]
extra_configs = platformio-common.ini    ; 描画用ライブラリに依存しないサンプルプログラム(`examples/Common`以下)
; extra_configs = platformio-gfx.ini     ; 描画ライブラリとしてSeeed_GFXを使用するサンプルプログラム(`examples/GFX`以下)
; extra_configs = platformio-gxepd2.ini  ; 描画ライブラリとしてGxEPD2を使用するサンプルプログラム(`examples/GxEPD2`以下)

次に,ご自身の環境に合わせてterminal-typebuild-targetを設定してください。

[terminal-type]
; extends = reterminal-e1001 ; E1001用にコンパイルする場合こちらを有効にする
extends = reterminal-e1002   ; E1002用にコンパイルする場合こちらを有効にする

[build-target]
; extends = release ; リリース用のビルドをする場合はこちらを有効にする
extends = debug     ; デバッグ用のビルドをする場合はこちらを有効にする

最後に,PlatformIO IDEのステータスバーに出ているSwitch PlatformIO Project Environmentでコンパイルするサンプルプログラムの環境を選択してビルドします。

※reTermnial E10XX用の設定はplatfromio-reterminal-e10xx.iniに書いています。

定型コード

examples/[GFX|GxEPD2]/Template/Template.inoにはSeeed_GFX・GxEPD2を使ってE1001/E1002用で画面を表示させるために必要最低限のコードが書かれています。

サンプルプログラム

ArduinoでのreTerminal Eシリーズ ePaperディスプレイの使用開始にあるサンプルプログラムをコンパイルできるようにしています。

  • examples/Common/Battery
  • examples/Common/Button
  • examples/Common/Buzzer
  • examples/Common/BuzzerWithTone
  • examples/Common/LED
  • examples/Common/SD
  • examples/Common/SHT4x
  • examples/GFX/Bitmap
  • examples/GFX/HelloWorld
  • examples/GxEPD2/BMPonSD
  • examples/GxEPD2/HelloWorld

また,参考になるサンプルプログラムも追加しています。

  • examples/Common/RTC

参考

About

PlatformIO IDE向けSeeed reTerminal E1001/E1002定型コード

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published