A number of the patterns have non-blocking versions, which are designed to run using state machines and millis() instead of delay(). This is particularly handy if you are trying to interact with the cube while one of these patterns are running. These non-blocking versions have also been created as classes, which make it easier to include them in other sketches.
Some of the patterns require an additional library to be installed that I’ve created with shared functions that I’ve found to be useful when interacting with the cube. The library is Cub4_ARUtils and can be found at https://github.com/neographophobic/Cube4_ARUtils.
The Github page contains all of the steps needed to download and install the library and sketches, a description of each of the patterns, and a link to a Youtube video of it in action. It also lists whether a sketch requires the Cube4_ARUtils library or not.
The patterns included are:-
- Blank
- ColourPulse
- Cube Edge
- Expanding
- Face Expanding
- Face Peel
- Face Sweep
- Flashing Cubes
- Letters (unchanged from my previous post)
- Looping Boxes
- Plane Move
- Random Fill
- Random Pull
- Roaming Cubes
- Rotate Plane
- Snake
- Spiral
- Splat
- Sweep
- Wave
- ZigZag
- Colour Fader
- Cubes
- DoubleCube
- Emergency Flashing
- Heartbeat
- LaserShow
- RainStorm
- Random Colours
- Test Pattern