1. Engineering
  2. Computer Science
  3. line 16 for the statement quotdelay15quot what is the meaning...

Question: line 16 for the statement quotdelay15quot what is the meaning...

Question details

Line 16: For the statement delay(15), what is the meaning of the number in this code? What is the consequence of changing the number and whether it is too high or too low? What determines if a value is too high or too low2I #include <servo-h» 3 Sevo myservo / create servo object to control a sezvo 4 5 int potpin analog pin used to connect the potentiometer 6 int val / variable to read the value from the analog pin 8 void setup() f 9 myservo.attach(9) attaches the servo on pin 9 to the sezvo object 10 12 void loop) 13 val = analogRead(pot pin) ; 14 valmap (val, 15 myservo.write(val) 16 delay (15) 17 // reads the value of the potentiometez (value between o and 1023) scale it to use it with the s // sets the servo position according to the scaled value / waits for the servo to get there 1023, 0, 180) ervo (value between o and 180)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution