The M5Stack Core 2 offers a compelling combination of features: a compact, cute design, an intuitive touchscreen, and an integrated accelerometer. My motivation was to build interesting content that utilizes these unique aspects of the M5Stack. As I pondered ideas, I was reminded of xeyes—that wonderfully nostalgic program where animated eyes followed your mouse cursor. This sparked an idea: why not bring that same playful concept to the M5Stack, and even enhance it with the accelerometer? This resulted in a project where two digital eyes on its screen playfully follow your touches and even spin around when you give the M5Stack a gentle tap.
Installation- Register an M5Stack Community account if you haven't already.
- Launch the M5Burner .
- Click
USER CUSTOM
in the lower left corner. - Log in to the M5Stack Community.
- Click the
Share Burn
button. - Enter
NOmrydGI4FXocM31
in theShare Code
field. - Click the lightning icon ⚡ .
- Clone the repository:
git clone https://github.com/cubic9com/m5core2_eyes.git
cd m5core2_eyes
- Install Visual Studio Code if you haven't already.
- Open the project in Visual Studio Code:
code .
- Install
PlatformIO IDE
extension:Go to the Extensions view (Ctrl+Shift+X
).Search forPlatformIO IDE
and install it. - Open PlatformIO Home:In the left Activity Bar, click the PlatformIO icon.In the left Primary Sidebar, Go to
QUICK ACCESS > PIO Home > Open
. - Open the project:In the right Editor Groups, Click
Open Project
in thePIO HOME
tab.Select the clonedm5core2_eyes
project folder. - Upload the project:In the left Primary Sidebar, go to
PROJECT TASKS > m5stack-core2 > General > Upload
.
- Touch the display.
- Hit it to spin its eyes.
Comments