First published 13 Nov 2009, with 3 revisions since. Last update: 13 Nov 2009. View history
Last change message: N/A
« Back to documentation index
00001 // LIS302 Hello World! 00002 00003 #include "mbed.h" 00004 #include "LIS302.h" 00005 00006 LIS302 acc(p5, p6, p7, p8); // mosi, miso, sclk, ncs 00007 00008 int main() { 00009 while(1) { 00010 printf("%.3f %.3f %.3f\n", acc.x(), acc.y(), acc.z()); 00011 wait(0.1); 00012 } 00013 }