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: HEPTA_EPS HEPTA_SENSOR mbed
main.cpp
00001 #include "mbed.h" 00002 #include "HEPTA_EPS.h" 00003 #include "HEPTA_SENSOR.h" 00004 00005 RawSerial pc(USBTX,USBRX,9600); 00006 HEPTA_EPS eps(p16,p26); 00007 HEPTA_SENSOR sensor(p17, 00008 p28,p27,0x19,0x69,0x13, 00009 p13, p14,p25,p24); 00010 00011 int main() 00012 { 00013 float ax,ay,az; 00014 for(int i = 0; i<50; i++) { 00015 sensor.sen_acc(&ax,&ay,&az); 00016 pc.printf("acc : %f,%f,%f\r\n",ax,ay,az); 00017 wait(1.0); 00018 } 00019 }
Generated on Tue Nov 8 2022 03:18:49 by
1.7.2