mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Water: Removed grove dependency
* Renamed all files from grovewater to water * Replaced all instances of grovewater with water * Updated all CMake files Signed-off-by: Sisinty Sasmita Patra <sisinty.s.patra@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
e9b0deaf75
commit
ddab71e896
@ -53,7 +53,7 @@ add_example(SlideSample slide)
|
||||
add_example(GroveSpeakerSample grovespeaker)
|
||||
add_example(TemperatureSample temperature)
|
||||
add_example(VDivSample vdiv)
|
||||
add_example(GroveWaterSample grovewater)
|
||||
add_example(WaterSample water)
|
||||
add_example(GroveWFSSample grovewfs)
|
||||
add_example(GUVAS12DSample guvas12d)
|
||||
add_example(H3LIS331DLSample h3lis331dl)
|
||||
|
@ -22,12 +22,12 @@
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
public class GroveWaterSample {
|
||||
public class WaterSample {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
// ! [Interesting]
|
||||
// Instantiate a Grove Water sensor on digital pin D2
|
||||
upm_grovewater.GroveWater water = new upm_grovewater.GroveWater(2);
|
||||
// Instantiate a Water sensor on digital pin D2
|
||||
upm_water.Water water = new upm_water.Water(2);
|
||||
|
||||
while (true) {
|
||||
boolean val = water.isWet();
|
||||
@ -42,4 +42,4 @@ public class GroveWaterSample {
|
||||
// ! [Interesting]
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user