Skip to content

Commit

Permalink
zzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancrubin committed Sep 9, 2022
1 parent 5bb7804 commit 8617026
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Watermeter
version=1.0.6
version=1.0.7
author=Jordan Rubin <[email protected]>
maintainer=Jordan Rubin <[email protected]>
sentence=Control Library for reed switch pulse actuated water meters such as the DAE Water Meter Model V-100P
Expand Down
4 changes: 2 additions & 2 deletions src/Watermeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
class WATERMETER
{
////////////// user-accessible "public" interface
//WATERMETER(SignalGPIOpin,useInternalPullupResistor,measure[g|l],dbouncedelay,useSD,increment,saveinterval)
//WATERMETER(SignalGPIOpin,useInternalPullupResistor,measure[g|l],dbouncedelay,useSD,increment,saveinterval,debug)
public:
WATERMETER(int,bool,char,long,bool,float,int);
WATERMETER(int,bool,char,long,bool,float,int,bool);
bool updated(void);
int getDebounce(void);
const char* initFilesys(void);
Expand Down
7 changes: 4 additions & 3 deletions src/main.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
#include <Watermeter.h>

/*
WATERMETER WATERMETER(SignalGPIOpin,useInternalPullupResistor,measure[g|l],metervalue,saveInterval)
WATERMETER WATERMETER(SignalGPIOpin,useInternalPullupResistor,measure[g|l],metervalue,saveInterval,debug)
Using GPIO 15 [15]
Using internal pullup resistors [true]
This meter is designed as gallons [g]
Debounce delay in ms [100]
Use SD card to autosave meter to filesys [true]
The value of measurment added each time [.1] i.e. .1 gallons per pulse
The save interval to SD in seconds [30]
The save interval to SD in seconds [30]
Toggle some debug to console [true]

If SD card is set to true the programme will expect a fat32 formatted SD card installed in the unit.
It uses the default connections. SPIFFS hase been completely removed as of this version, given the
Expand All @@ -31,7 +32,7 @@
MISO -> GPIO 19
*/

WATERMETER thisMeter(15,true,'g',100,true,.1,30);
WATERMETER thisMeter(15,true,'g',100,true,.1,30,true);

void setup() {
Serial.begin(38400);
Expand Down

0 comments on commit 8617026

Please sign in to comment.