/*
Pelatihan IoT3 - 14 Internet of Things (IoT) DTS PROA Batch 3
(Digitalent Scholarship Professional Academy)
created 11 Agustus 2022
by Muhammad Sudarsono
modified 11 Agustus 2022
Copyright © 2022 Indobot Academy
*/
//Deklarasi
#define LED_Hijau 11. //PIN Led 11
#define LED_Kuning 12. //PIN Led 12
#define LED_Merah 13 //PIN Led 13
#define tombol 7 //PIN Baten 7
void setup() {
// Inialisasi
pinMode(LED_Hijau, OUTPUT); //Inialisasi LED Hiaju
pinMode(LED_Kuning, OUTPUT); //Inialisasi LED Biru
pinMode(LED_Merah, OUTPUT); //Inialisasi LED Merah
pinMode(tombol, INPUT); //Inialisasi Pusbaten
digitalWrite(LED_Hijau, LOW); //Defold led hijau = 0
digitalWrite(LED_Kuning, LOW); //Defold led Biru = 0
digitalWrite(LED_Merah, LOW); //Defold led Merah = 0
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(tombol) == HIGH){
Meyebrang();
}
else{
Normal();
}
}