Exemples : // link the servo to pin 9, and set the pulse width limits (544ms and 2400ms in this case) - Real servo servo.attach(9, 544,2400);
// link the servo to pin 9 only - Tinker servo
servo.attach(9);
Question:
Is it possible to test if the code is running inside a virtual Arduino or inside a real Arduino to do
the first attach if Arduino is real or the second attach if Arduino is virtual (TinkerCad) and this using the same Code (with a test ?)
(Inside codeblock ? )
Best Regards
0 comments
Please sign in to leave a comment.