Home Servo motor control with Node MCU byTech Arduino Code •December 31, 2022 Code #include <Servo.h> Servo servo; void setup() { servo.attach(5); //D1 servo.write(0); delay(2000); } void loop() { servo.write(90); delay(1000); servo.write(0); delay(1000); } Facebook Twitter