#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 );
}
}