From af7f54438798ab29c54df9cb38d5580060506d5b Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 29 Jan 2016 18:17:26 -0700 Subject: [PATCH] my9221: fixup groveledbar java example Signed-off-by: Jon Trulson Signed-off-by: Mihai Tudor Panu --- examples/java/MY9221_ledbarSample.java | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/examples/java/MY9221_ledbarSample.java b/examples/java/MY9221_ledbarSample.java index 1eaa0580..51d2f71c 100644 --- a/examples/java/MY9221_ledbarSample.java +++ b/examples/java/MY9221_ledbarSample.java @@ -22,20 +22,20 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -public class MY9221_ledbarSample{ +public class GroveLEDBar { - public static void main(String[] args) throws InterruptedException { - //! [Interesting] - // Instantiate a Grove LED Bar, with Data pin D8 and Clock pin D9 - upm_my9221.MY9221 bar = new upm_my9221.MY9221((short) 8, (short) 9); - - while (true) { - for (short idx = 1; idx < 11; idx++) { - bar.setBarLevel(idx); - Thread.sleep(100); - } - } + public static void main(String[] args) throws InterruptedException { //! [Interesting] - } + // Instantiate a Grove LED Bar, with Data pin D8 and Clock pin D9 + upm_my9221.GroveLEDBar bar = new upm_my9221.GroveLEDBar((short) 8, (short) 9); + + while (true) { + for (short idx = 1; idx < 11; idx++) { + bar.setBarLevel(idx); + Thread.sleep(100); + } + } + //! [Interesting] + } }