Chris Styles
/
DemoBoard_Acc_RGB
main.cpp
- Committer:
- chris
- Date:
- 2009-09-22
- Revision:
- 1:cd69ae993250
- Parent:
- 0:ebf712d4ccfc
File content as of revision 1:cd69ae993250:
#include "DemoBoard.h" /* * This project uses the triple axis accelerometer and the RGB LED * The x,y,z axes are assigned to the r,g,b components respectively * The acceleration in a given axis will modulate it's associated colour */ int main() { while(1) { rgb.red(abs(acc.x())); rgb.green(abs(acc.y())); rgb.blue(abs(acc.z())); wait (0.01); } }