#define led_M 13
#define tombol 7
void setup() {
// put your setup code here, to run once:
pinMode (led_M, OUTPUT );
pinMode (tombol, INPUT );
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead (tombol)== HIGH ){
digitalWrite (led_M, HIGH );
}
else {
digitalWrite(led_M, LOW );
}
}