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
main.cpp
- Committer:
- MACRUM
- Date:
- 2018-08-07
- Revision:
- 0:21d86aae6b2a
- Child:
- 1:615afe04158d
File content as of revision 0:21d86aae6b2a:
#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);
}
}