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.
Revision 0:c8ca6be83e2e, committed 2017-02-07
- Comitter:
- RyotaNakamura
- Date:
- Tue Feb 07 08:40:02 2017 +0000
- Commit message:
- Nucleo F303K8?MS5607???????????????????
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MS5607.lib Tue Feb 07 08:40:02 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/yamaguch/code/MS5607/#5760862143d1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Feb 07 08:40:02 2017 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+
+//#include "MS5607SPI.h"
+#include "MS5607I2C.h"
+
+//MS5607SPI ms5607(p11, p12, p13, p3);
+MS5607I2C ms5607(PB_7, PB_6, false);
+DigitalOut myled(LED1);
+Serial pc(USBTX, USBRX);
+Timer timer;
+
+int main()
+{
+ float Tem;
+ int miri=1000;
+
+ while(1) {
+ wait(1);
+
+ myled = 1;
+ wait(0.2);
+ myled = 0;
+ wait(0.2);
+
+ timer.reset();
+ timer.start();
+ Tem=ms5607.getTemperature();
+ timer.stop();
+ float t=timer.read();
+ float time=t*miri;
+ pc.printf("time= %f ms\n",time);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Feb 07 08:40:02 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/176b8275d35d \ No newline at end of file