M5stickCに内蔵されているボタンを使用して、LEDの点灯を行いました。 M5.BtnA.isPressed()関数を使用するだけで、ボタン操作が可能なので、ボタン操作が簡単です。
I used the built-in button on the M5stickC to turn on the LED. M5stickC Just use the M5.BtnA.isPressed() function to operate the buttons, so it's easy to operate them.