From 50ec3a018fe395287f4e67a083d3ada6d86db8b8 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Mon, 12 Sep 2016 12:48:37 -0700 Subject: [PATCH] rotary_relay: Updated java examples Changed module from upm_grove to upm_relay/rotary. Signed-off-by: Noel Eck --- examples/java/RelaySample.java | 4 ++-- examples/java/RotarySample.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/java/RelaySample.java b/examples/java/RelaySample.java index be2ee9c0..678a64ab 100644 --- a/examples/java/RelaySample.java +++ b/examples/java/RelaySample.java @@ -26,7 +26,7 @@ public class RelaySample { public static void main(String[] args) throws InterruptedException { // ! [Interesting] // Create the button object using UART - upm_grove.Relay relay = new upm_grove.Relay(5); + upm_relay.Relay relay = new upm_relay.Relay(5); for (int i = 0; i < 3; i++) { relay.on(); @@ -41,4 +41,4 @@ public class RelaySample { } // ! [Interesting] } -} \ No newline at end of file +} diff --git a/examples/java/RotarySample.java b/examples/java/RotarySample.java index 965cb650..b5cf288d 100644 --- a/examples/java/RotarySample.java +++ b/examples/java/RotarySample.java @@ -26,7 +26,7 @@ public class RotarySample { public static void main(String[] args) throws InterruptedException { // ! [Interesting] - upm_grove.Rotary knob = new upm_grove.Rotary(0); + upm_rotary.Rotary knob = new upm_rotary.Rotary(0); while (true) { float abs_value = knob.abs_value(); // Absolute raw value @@ -46,4 +46,4 @@ public class RotarySample { // ! [Interesting] } -} \ No newline at end of file +}