Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed ADXL375_i2c
main.cpp
00001 #include "mbed.h" 00002 #include "ADXL375_i2c.h" 00003 00004 DigitalOut myled(PB_1); 00005 Serial pc(PA_9, PA_10, 9600); 00006 00007 ADXL375_i2 adxl = ADXL375_i2c(PB_7, PB_6); 00008 00009 int main() { 00010 while(1) { 00011 myled = 1; // LED is ON 00012 wait(0.2); // 200 ms 00013 myled = 0; // LED is OFF 00014 wait(1.0); // 1 sec 00015 } 00016 }
Generated on Sun Jul 17 2022 23:03:28 by
1.7.2