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;