#define LED 33
#define BUTTON 18
#define BUZZER 19
//bool pulsa = false;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello World!!!");
pinMode(LED, OUTPUT);
pinMode(BUTTON, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
while(digitalRead(BUTTON) == true)
{
digitalWrite(LED, HIGH);
delay(250); // this speeds up the simulation
digitalWrite(LED, LOW);
delay(250);
}
digitalWrite(LED, HIGH);
delay(500); // this speeds up the simulation
digitalWrite(LED, LOW);
delay(500);
}