Skip to content

Yf-S201 & Yf-S402 water flow meter library for TinyCLR.

Notifications You must be signed in to change notification settings

jmojiwat/Zhongjiang.TinyClr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Yf-S201 & Yf-S402 Water Flow Meter library for TinyCLR

This library uses a timer to measure water flow.

var gpioController = GpioController.GetDefault();
var capability = YfSCapabilityExtensions.Yf201Capability();

var wfm = new YfS(capability, SC20100.GpioPin.PA10, 2000, 1000, gpioController);

while (true)
{
  var flow = wfm.VolumeFlowLitresPerMinute;
  Thread.Sleep(2000);
}

About

Yf-S201 & Yf-S402 water flow meter library for TinyCLR.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages