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
Diff: main.cpp
- Revision:
- 0:dd7652191c4d
- Child:
- 2:6fdd18473e85
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Aug 17 07:04:34 2022 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "HEPTA_EPS.h"
+#include "HEPTA_SENSOR.h"
+
+Serial pc(USBTX, USBRX);
+HEPTA_EPS eps(p16,p26);
+HEPTA_SENSOR sensor(p17,
+ p28,p27,0xD0,0x18,
+ p13, p14,p25,p24);
+
+int main()
+{
+ pc.baud(9600);
+ float ax,ay,az;
+ for(int i = 0; i<50; i++) {
+ sensor.sen_acc(&ax,&ay,&az);
+ pc.printf("acc : %f,%f,%f\r\n",ax,ay,az);
+ wait(1.0);
+ }
+}
\ No newline at end of file