int LED = 3;
int TOMBOL = 2;
void setup() {
pinMode(3, OUTPUT);
pinMode(2, INPUT_PULLUP);
Serial.println("PROJECT LED");
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop() {
if(digitalRead(2)==0){
digitalWrite(3, HIGH);
}else {
digitalWrite(3, LOW);
}
// put your main code here, to run repeatedly:
}