September 13, 2022
Home »
diklatbimtekws
» PELATIHAN IoT SEAMOLEC (ESP32 DENGAN SERVO)
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);
}
my name is Dina I'm a teacher at a private high school in Bondowoso Indonesia loves education and likes education development
0 comments:
Post a Comment