Hello program for BME280_SPI library

Dependencies:   BME280_SPI mbed

Fork of BME280_Hello by Toyomasa Watarai

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Tue Mar 14 00:50:28 2017 +0000
Parent:
6:aa209f774b47
Commit message:
Tested with Nucleo_F401RE

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Mar 13 15:38:13 2017 +0000
+++ b/main.cpp	Tue Mar 14 00:50:28 2017 +0000
@@ -2,8 +2,11 @@
 #include "BME280_SPI.h"
 
 Serial pc(USBTX, USBRX);
-
+#if defined(TARGET_LPC1768)
 BME280_SPI sensor(p5, p6, p7, p8); // mosi, miso, sclk, cs
+#elif defined(TARGET_NUCLEO_F401RE)
+BME280_SPI sensor(D4, D5, D3, D7); // mosi, miso, sclk, cs
+#endif
 
 int main() {