@SirMichael
I found what I was looking for, a simple sketch to create a button. I did some minor massages, taking from the events_buttons_gestures_rotation.ino and figured it out.
#include <M5Core2.h>
ButtonColors on_clrs = { RED, WHITE, WHITE };
ButtonColors off_clrs = { BLACK, WHITE, WHITE };
Button myButton(10, 10, 80, 60, false, "Button", off_clrs, on_clrs, TL_DATUM );
void setup() {
M5.begin();
M5.Buttons.draw();
}
void loop() {
M5.update();
if (myButton.wasReleased()) Serial.print("* ");
}
Sir Michael