I've been having fun working on a few demos using the L3D Cube "Christmas Edition" and the first one I feel is ready to share is a simple demo using the accelerometer. I create a "ground plane" that stays level as you rotate the cube left and right. Additional work could be done to also keep it level with forward/back, but I've moved on to another demo.
Here is a video:
https://vimeo.com/115357826And here is the code:
https://gist.github.com/gwygonik/dee80233dffe22bc5227#file-l3dcubeaccelerometerdemo-inoBe sure to add the Adafruit Neopixel library in Spark Build.
This demo has sparked (no pun intended) ideas of building a platformer game that makes your character (probably a small 2x2 pixel cube) run across a landscape, having to tilt to get different objects for points, or avoid traps or holes.
Cheers,
g.