#include Servo ESC; void setup() { ESC.attach(11); } void loop() { int throttle = analogRead(A1); throttle = map(throttle, 0, 1023, 0, 180); ESC.write(throttle); }