I'm having trouble understanding how to use the M5Stack Core2, creating new buttons for my project.
I can use the 3 buttons (A, B & C) and for some screens, but I need to create a few more buttons, with similar properties.
I've been studying the Example:
(events_buttons_gestures_rotation.ino) for the M5Stack Core2 but I can't make heads or tails of it. I've added print statements to see which subroutines are executed and I don't understand what the "doRotation()" or what the swipe gestures do.
The only thing that I've discovered in playing with it is that if I press one of the buttons twice quickly that the "toggleColor" is executed.
The few comments that are in the code are useless to me. There is nothing to describe what the "rotation" and "gestures" are, or even what they do.
Is there a simpler example somewhere that I can use to create a few buttons when I need them for the "wasReleased()" and "wasPressedFor()" functions?