This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "avr/interrupt.h" | |
bool value; | |
#define STATUS_PIN PB4 //Led marker for show the user what happened | |
void setup() { | |
pinMode(STATUS_PIN, OUTPUT); | |
digitalWrite(STATUS_PIN, HIGH); | |
GIMSK = 0b00100000; // turns on pin change interrupts |