 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoistureLevel ¶
type MoistureLevel uint8
const ( CompletelyDry MoistureLevel = iota VeryDry Dry Wet VeryWet Water )
type SoilSensor ¶
type SoilSensor interface {
	Get() MoistureLevel
	Configure()
	On()
	Off()
}
    SoilSensor is used to read the humidity value of a soil sensor
func NewSoilSensor ¶
func NewSoilSensor(waterThreshold, dryThreshold uint16, dataPin, voltagePin machine.Pin) SoilSensor
 Click to show internal directories. 
   Click to hide internal directories.