Simple and easy editable program for weather stations

Dependencies:   mbed mbed-STM32F103C8T6 thermistor HMC5883L DHT11 USBDevice

Files at this revision

API Documentation at this revision

Comitter:
programy1
Date:
Tue May 19 18:28:48 2020 +0000
Parent:
1:f2402d1acb80
Commit message:
updated

Changed in this revision

.mbedignore 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_app.json Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.mbedignore	Tue May 19 18:28:48 2020 +0000
@@ -0,0 +1,11 @@
+mbed-os/rtos/*
+mbed-os/features/cellular/
+mbed-os/features/FEATURE_CLIENT/*
+mbed-os/features/FEATURE_COMMON_PAL/*
+mbed-os/features/FEATURE_UVISOR/*
+mbed-os/features/frameworks/*
+mbed-os/features/net/*
+mbed-os/features/netsocket/*
+mbed-os/features/nvstore/*
+mbed-os/features/storage/*
+
--- a/main.cpp	Tue May 19 10:35:10 2020 +0000
+++ b/main.cpp	Tue May 19 18:28:48 2020 +0000
@@ -20,8 +20,8 @@
         temphum.readData();
         usb.printf("Thermistor = %f\n", my_thermistor.temperature());
         usb.printf("Heading = %f\n", wind_direction.getHeadingXYDeg());
-        usb.printf("Temperature DHT11 = %f\n", temphum.readTemperature());
-        usb.printf("Humidity DHT11 = %f\n", temphum.readHumidity());
+        usb.printf("Temperature DHT11 = %d\n", temphum.readTemperature());
+        usb.printf("Humidity DHT11 = %d\n", temphum.readHumidity());
         led = !led;
         wait(1.0);
     }
--- a/mbed_app.json	Tue May 19 10:35:10 2020 +0000
+++ b/mbed_app.json	Tue May 19 18:28:48 2020 +0000
@@ -1,6 +1,10 @@
 {
+    "macros": [ 
+        "NDEBUG=1"
+    ],
     "target_overrides": {
         "*": {
+            "platform.stdio-flush-at-exit": false,
             "target.clock_source": "USE_PLL_HSE_XTAL",
             "target.clock_source_usb": "1",
             "target.default_lib": "small",