![]() ![]() If (data = 'R') //If 'R' is entered, start recording. Serial.println("Playing Recorded Moves.") Map_Pot() //Function call to read pot values Servo_0.write(Servo_0_Pos) //Move the servo to that position. Pot_0 = analogRead(A0) // Read input from pot and store it in the Variable Pot_0. ![]() Which is annoying so we limit the servo to move For this we will define a function and name it Map_Pot(), you can name it anything you want it is a user-defined function.Ī good idea as it makes the servos buzz continuously
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |