Am using a MC14490 debounce eliminators' for switch press. And the switch press trigger external interrupt. The program works fine but there is random interrupt trigger ,during power on.
Code:
int MyPin = 6 ;
int Led =13;
volatile int State = 1;
void setup() {
pinMode(Led, OUTPUT);
attachInterrupt(digitalPinToInterrupt(MyPin), Blink, CHANGE);
}
void loop() {
digitalWrite(Led, State); // turn the LED on (HIGH is the voltage level)
}
void Blink () {
State = !State;
}
I assume the debounce would eliminatior would take care of noise trigger . I assume wrong. Any suggestions