Monitor for central heating system (e.g. 2zones+hw) Supports up to 15 temp probes (DS18B20/DS18S20) 3 valve monitors Gas pulse meter recording Use stand-alone or with nodeEnergyServer See http://robdobson.com/2015/09/central-heating-monitor

Dependencies:   EthernetInterfacePlusHostname NTPClient Onewire RdWebServer SDFileSystem-RTOS mbed-rtos mbed-src

Files at this revision

API Documentation at this revision

Comitter:
Bobty
Date:
Mon Feb 02 16:24:30 2015 +0000
Parent:
3:9f00be404f8f
Child:
5:5bccf48799d4
Commit message:
Starting to add SD File System

Changed in this revision

PulsePin.cpp Show annotated file Show diff for this revision Revisions of this file
PulsePin.h Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.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
--- a/PulsePin.cpp	Fri Nov 07 20:28:48 2014 +0000
+++ b/PulsePin.cpp	Mon Feb 02 16:24:30 2015 +0000
@@ -3,10 +3,10 @@
 
 #include "PulsePin.h"
 
-PulsePin::PulsePin(DigitalIn& pin, bool risingEdge, int waitForPinStabilisationMs) :
+PulsePin::PulsePin(DigitalIn& pin, bool detectRisingEdge, int waitForPinStabilisationMs) :
     _pin(pin)
 {
-    _risingEdge = risingEdge;
+    _detectRisingEdge = detectRisingEdge;
     _waitForPinStabilisationMs = waitForPinStabilisationMs;
     _pinTimer.start();
     _curPinState = _pin;
@@ -31,7 +31,7 @@
     _lastStableTimeMs = timeNowMs;
     
     // Check if this is the direction of edge we're looking for
-    if (pinState != _risingEdge)
+    if (pinState != _detectRisingEdge)
         return false;
         
     // Reset the timer to avoid wrap around problems
--- a/PulsePin.h	Fri Nov 07 20:28:48 2014 +0000
+++ b/PulsePin.h	Mon Feb 02 16:24:30 2015 +0000
@@ -16,7 +16,7 @@
         bool _firstEdgeDetected;
         int _lastStableTimeMs;
         int _waitForPinStabilisationMs;
-        bool _risingEdge;
+        bool _detectRisingEdge;
         int _timeBetweenEdgesMs;
 };
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Mon Feb 02 16:24:30 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/mbed_official/code/SDFileSystem/#7b35d1709458
--- a/main.cpp	Fri Nov 07 20:28:48 2014 +0000
+++ b/main.cpp	Mon Feb 02 16:24:30 2015 +0000
@@ -1,7 +1,9 @@
 #include "mbed.h"
 #include "EthernetInterface.h"
 #include "PulsePin.h"
-
+#include "SDFileSystem.h"
+ 
+SDFileSystem sd(p5, p6, p7, p8, "sd");
 DigitalIn gpPin(p21);
 PulsePin pulsePin(gpPin, false, 200);
 DigitalOut led(LED1);