Skip to content

Instantly share code, notes, and snippets.

@micartey
Last active March 22, 2025 15:58
Show Gist options
  • Save micartey/56220d2137d905a426a599cca679c065 to your computer and use it in GitHub Desktop.
Save micartey/56220d2137d905a426a599cca679c065 to your computer and use it in GitHub Desktop.
#include <Servo.h>
Servo ESC;
void setup() {
Serial.begin(9600);
Serial.println("Starting");
ESC.attach(A0);
ESC.write(2000);
delay(2000);
ESC.write(1000);
delay(2000);
}
void loop() {
ESC.write(1040); // 1040 is fairly low. 1000 was to low for my motor to spin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment