Skip to content

Instantly share code, notes, and snippets.

View lazlyhu's full-sized avatar

Laszlo Gazdag lazlyhu

  • Cookpad
  • Budapest
View GitHub Profile
lazlyhu / direct_interupt_settings.ino
Created April 17, 2018 21:02
Attiny interupt handle
View direct_interupt_settings.ino
#include "avr/interrupt.h"
bool value;
#define STATUS_PIN PB4 //Led marker for show the user what happened
void setup() {
digitalWrite(STATUS_PIN, HIGH);
GIMSK = 0b00100000; // turns on pin change interrupts