#include #define IO_direction DDRA #define IO_pin (1 << PA6) #define IO_pins PINA #define input(directions,pin) (directions &= (~pin)) // set port direction for input #define pin_test(pins,pin) (pins & pin) // test for port pin int main(void) { //Button = Attiny44 pin PB2 DDRB &= ~(1< 0 && hall_on == 0) { //turn LED on PORTA |= (1<