Skip to content

Instantly share code, notes, and snippets.

View lazlyhu's full-sized avatar

Laszlo Gazdag lazlyhu

  • Cookpad
  • Budapest
View GitHub Profile
@lazlyhu
lazlyhu / direct_interupt_settings.ino
Created April 17, 2018 21:02
Attiny interupt handle
#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