September 13, 2022

PELATIHAN IoT SEAMOLEC (ESP32 DENGAN SERVO)

PEMBUATAN ALAT GERAK MENGGUNAKAN ESP32 DENGAN SERVO #include Servo myservo; void setup() { // put your setup code here, to run once: Serial.begin(115200); myservo.attach(32); Serial.println("Hello, ESP32!"); } void loop() { // put your main code here, to run repeatedly: myservo.write(0); delay(1000); myservo.write(90); delay(1000); }

0 comments:

Post a Comment