File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Read_Flow_Rate_and_Volume Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 2121// OF05ZAT;
2222// OF05ZZT;
2323
24- // pin -> interrupt pin
25- FlowSensor Sensor (YFS201, D2);
24+ #define type YFS201
25+ #define pin D2 // pin -> interrupt pin
26+
27+ FlowSensor Sensor (type, pin);
2628unsigned long timebefore = 0 ; // Same type as millis()
2729
2830// Uncomment if use ESP8266 and ESP32
Original file line number Diff line number Diff line change 2121// OF05ZAT;
2222// OF05ZZT;
2323
24- // pin -> interrupt pin
25- FlowSensor Sensor (YFS201, D2);
24+ #define type YFS201
25+ #define pin D2 // pin -> interrupt pin
26+
27+ FlowSensor Sensor (type, pin);
2628unsigned long timebefore = 0 ; // Same type as millis()
2729unsigned long reset = 0 ;
2830
Original file line number Diff line number Diff line change 2121// OF05ZAT;
2222// OF05ZZT;
2323
24- // pin -> interrupt pin
25- FlowSensor Sensor (YFS201, D2);
24+ #define type YFS201
25+ #define pin D2 // pin -> interrupt pin
26+
27+ FlowSensor Sensor (type, pin);
2628unsigned long timebefore = 0 ; // same type as millis()
2729unsigned long reset = 0 ;
2830
You can’t perform that action at this time.
0 commit comments