fenri's diary

基本的には勉強し始めたC#のメモ。後は140字で収まらない駄文。

M5 Stack ボタンの位置

だいたいの位置

#include <M5Stack.h>

void setup() {
  M5.begin();//M5StickCオブジェクトを初期化
  delay(20);

  // 左ボタン ボタンA
  M5.Lcd.drawFastVLine(160 - 90 - 1, 0, 240, RED);

  // 中央ボタン ボタンB
  M5.Lcd.drawFastVLine(160 - 1, 0, 240, GREEN);

  // 右ボタン ボタンC
  M5.Lcd.drawFastVLine(160 + 90 - 1, 0, 240, BLUE);
}

void loop() {
}