Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed C12832 Servo RangeFinder Pulse
MoistureSensor.cpp
00001 #include <mbed.h> 00002 #include <MoistureSensor.h> 00003 00004 00005 00006 moisture_sensor::moisture_sensor(PinName pin) : _pin(pin) 00007 { 00008 // _pin(pin) means pass pin to the AnalogIn constructor 00009 } 00010 moisture_sensor::~moisture_sensor () 00011 { 00012 } 00013 float moisture_sensor::read() 00014 { 00015 //read moisture sensor 00016 return _pin.read(); 00017 } 00018 00019 /* 00020 float moisture_sensor:getCurrentmoisture_sensor() 00021 { 00022 currentMoistureSensor = Moisturelevelreading.read() 00023 return Moisture_Sensorreading; 00024 } 00025 */
Generated on Wed Jul 27 2022 00:26:44 by
