From GameBrew - a wiki dedicated to Video Game Homebrew.
An application to check whether a surface is level or not, it makes use of the DSMotion card and DSerial card. It is written in C++ and inspired by a similar application on the HTC Diamond phone.
For those who does not own an DSMotion or DSerial card, level check will not be available (you will only be able to move the bubbles with buttons).
D-Pad - Move bubbles
Tested on the NDS with a DSMotion card.
GFX were ripped from the internet and fed through PAGfx.
- Author's website - http://homepages.manx.net/bootlegger/nds_programming.html