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: FXOS8700 FXAS21002 kalman MotionSensor
Diff: main.cpp
- Revision:
- 0:21d86aae6b2a
- Child:
- 1:615afe04158d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Aug 07 04:36:25 2018 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "Grove_temperature.h"
+
+Grove_temperature temp(A4);
+Serial pc(USBTX, USBRX);
+
+// main() runs in its own thread in the OS
+int main() {
+ pc.baud(115200);
+ while (true) {
+ pc.printf("temperature = %2.2f\n", temp.getTemperature());
+ wait(1);
+ }
+}
+