Ever had your cursor move a little bit while you weren't even touching the mouse? Freaky! This MakeCode program will turn your Gemma M0 into a Phantom Mouse Jiggler. When plugged in to a computer, it will wait patiently, and then occasionally take over the mouse cursor from the user and move it around back and forth. Maddening!
One very powerful feature of the Gemma M0 (and other ATSAMD21 ARM Cortex M0-based microcontrollers) is its ability to appear as a keyboard or mouse when plugged into a computer’s USB port.
The Gemma M0 can pretend to be a USB mouse, so we'll take a look at how to program it with MakeCode to wait dormant for long periods of time, and then jiggle the cursor for a few seconds!
Text editor powered by tinymce.