bmp280

Dependencies:   mbed BMP280_SPI

Files at this revision

API Documentation at this revision

Comitter:
intersect20
Date:
Tue Oct 27 16:59:39 2020 +0000
Commit message:
bmp280;

Changed in this revision

BMP280_SPI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4cbd84d88fc5 BMP280_SPI.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BMP280_SPI.lib	Tue Oct 27 16:59:39 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/MACRUM/code/BMP280_SPI/#0463be4e35c0
diff -r 000000000000 -r 4cbd84d88fc5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 27 16:59:39 2020 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "BMP280_SPI.h"
+
+Serial pc(USBTX, USBRX);
+BMP280_SPI sensor(D11, D12, D13, D9); // mosi, miso, sclk, cs
+
+int main() {
+
+    while(1) {
+        pc.printf("%2.2f,%04.2f\n\r", sensor.getTemperature(), sensor.getPressure());
+        wait(1);
+    }
+}
diff -r 000000000000 -r 4cbd84d88fc5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Oct 27 16:59:39 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file