#include #include #include #include "io.h" #define PIN_DATA 0 #define PIN_CLK 1 #define PIN_ACK 2 #define PIN_IN 3 #define PIN_LED 4 #include "bus.h" void init_interrupt() { MCUSR = 0; wdt_disable(); DDRB &= ~(1< #include #include #include "io.h" #define PIN_DATA 0 #define PIN_CLK 1 #define PIN_ACK 2 #define PIN_IN 3 #define PIN_LED 4 #include "bus.h" void init_interrupt() { MCUSR = 0; wdt_disable(); DDRB &= ~(1<>PB3; if(x) { uint32_t val=micros()-last; last=micros(); bus_write(&bus, &val, 4); ledstate=(ledstate)?0:1; digitalWrite(PIN_LED, ledstate); } } */