From 8bd5990b70ffa7f6f3589acad2e70e0d48bc0b54 Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Sat, 22 Jun 2013 01:43:29 -0400 Subject: Updated comments --- libraries/Bridge/examples/TimeCheck/TimeCheck.ino | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libraries/Bridge/examples/TimeCheck') diff --git a/libraries/Bridge/examples/TimeCheck/TimeCheck.ino b/libraries/Bridge/examples/TimeCheck/TimeCheck.ino index 54fd131..0dd8dc3 100644 --- a/libraries/Bridge/examples/TimeCheck/TimeCheck.ino +++ b/libraries/Bridge/examples/TimeCheck/TimeCheck.ino @@ -7,6 +7,7 @@ using an Arduino Yun. created 27 May 2013 + modified 17 June 2013 By Tom Igoe */ @@ -28,9 +29,7 @@ void setup() { // run an initial date process. Should return: // hh:mm:ss : if (!date.running()) { - date.begin("date"); - date.addParameter("+%T"); - date.run(); + date.runShellCommand("date +%T"); } } @@ -49,9 +48,7 @@ void loop() { // restart the date process: if (!date.running()) { - date.begin("date"); - date.addParameter("+%T"); - date.run(); + date.runShellCommand("date +%T"); } } @@ -77,3 +74,4 @@ void loop() { } } + -- cgit v1.2.3-18-g5258