From 07dfad0d0d271e4b86381efdc662f3da62984a1e Mon Sep 17 00:00:00 2001 From: LJH Date: Sun, 20 Oct 2019 21:50:15 +0900 Subject: [PATCH 1/3] Annotation add --- HelloWorld_IOT/HelloWorldRaspberryPi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HelloWorld_IOT/HelloWorldRaspberryPi.java b/HelloWorld_IOT/HelloWorldRaspberryPi.java index c159e76..1810de3 100644 --- a/HelloWorld_IOT/HelloWorldRaspberryPi.java +++ b/HelloWorld_IOT/HelloWorldRaspberryPi.java @@ -16,9 +16,9 @@ public static void main(String[] args) throws InterruptedException { while (true) { // H - pin.high(); - Thread.sleep(SHORT_INTERVAL); - pin.low(); + pin.high(); // ÇØ´ç pinÀÇ LED ON + Thread.sleep(SHORT_INTERVAL); // 0.2Ãʰ£ ÁßÁö + pin.low(); // ÇØ´ç pinÀÇ LED OFF Thread.sleep(SHORT_INTERVAL); pin.high(); Thread.sleep(SHORT_INTERVAL); From 8f2b67e0cbd2c86f6985f8e7f8e0af3559278aab Mon Sep 17 00:00:00 2001 From: LJH Date: Sun, 20 Oct 2019 21:53:49 +0900 Subject: [PATCH 2/3] Annotation Add --- HelloWorld_IOT/HelloWorldRaspberryPi.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HelloWorld_IOT/HelloWorldRaspberryPi.java b/HelloWorld_IOT/HelloWorldRaspberryPi.java index 1810de3..1d79d98 100644 --- a/HelloWorld_IOT/HelloWorldRaspberryPi.java +++ b/HelloWorld_IOT/HelloWorldRaspberryPi.java @@ -16,9 +16,9 @@ public static void main(String[] args) throws InterruptedException { while (true) { // H - pin.high(); // ÇØ´ç pinÀÇ LED ON - Thread.sleep(SHORT_INTERVAL); // 0.2Ãʰ£ ÁßÁö - pin.low(); // ÇØ´ç pinÀÇ LED OFF + pin.high(); // pin LED ON + Thread.sleep(SHORT_INTERVAL); // 0.2 Seconds Stop + pin.low(); // pin LED OFF Thread.sleep(SHORT_INTERVAL); pin.high(); Thread.sleep(SHORT_INTERVAL); From 097e744724106f018e57c48dabcb0993e5d2fc9d Mon Sep 17 00:00:00 2001 From: LJH Date: Sun, 20 Oct 2019 22:11:01 +0900 Subject: [PATCH 3/3] Comment Add --- Data_and_operation/Number.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Data_and_operation/Number.java b/Data_and_operation/Number.java index 2055957..e0ca07a 100644 --- a/Data_and_operation/Number.java +++ b/Data_and_operation/Number.java @@ -9,7 +9,13 @@ public static void main(String[] args) { System.out.println(6 / 2); // 3 System.out.println(Math.PI); // 3.141592653589793 - System.out.println(Math.floor(Math.PI)); + + // floor = remove decimal point + // 3.141592653589793 -> 3.0 print + System.out.println(Math.floor(Math.PI)); + + // ceil = a decimal ascent + // 3.141592653589793 -> 4.0 print System.out.println(Math.ceil(Math.PI));