The main thing the 'grains of sand' code does is act like...grains of sand! If you tilt the TrellisM4 in any direction, the motion is detected by the accelerometer and the sand grains 'flow' in the direction of tilt.
A sharp 'tap' anywhere on the NeoTrellis will switch the color mode - there are three modes built in:
- Rapidly cycles through random colors (default)
- A gradient based on the pixel index
- Solid color that changes with a button press
In the solid color mode, pushing any button on the NeoTrellis will rapidly change the color randomly. You can hold down for a random color effect, or quickly press to change to a new random color.
Page last edited March 08, 2024
Text editor powered by tinymce.