From a625579c73bc91e8f359e6034ebcad5c5aa2e333 Mon Sep 17 00:00:00 2001 From: kou029w Date: Thu, 24 Oct 2013 01:41:45 +0900 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=A4=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arduino/ServoSet/ServoSet.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arduino/ServoSet/ServoSet.ino b/arduino/ServoSet/ServoSet.ino index 8b8a880..a905b0d 100644 --- a/arduino/ServoSet/ServoSet.ino +++ b/arduino/ServoSet/ServoSet.ino @@ -7,7 +7,7 @@ void setup() { servo1.attach(9); servo2.attach(10); Serial.begin(9600); - Serial.print("format : [0-180][ab]"); + Serial.println("format : [0-180][ab]"); } void loop() { @@ -21,10 +21,14 @@ void loop() { v = v * 10 + ch - '0'; break; case 'a': + Serial.print("Servo(9) :"); + Serial.println(v); servo1.write(v); v = 0; break; case 'b': + Serial.print("Servo(10):"); + Serial.println(v); servo2.write(v); v = 0; break;