#include "hw.h" #include #include #include #include "hbw.h" uint8_t expled; uint8_t expbutton; void hbw_read_config(void) { } uint8_t hbw_get_channel(uint8_t channel, uint8_t data[]) { if (channel == 1) { if (bit_is_clear(PIND, ExpButton)) data[0] = 200; else data[0] = 0; return 1; } if (channel == 0) { if (bit_is_clear(PIND, ExpLED)) data[0] = 0; else data[0] = 200; return 1; } return 0; } void hbw_set_channel(uint8_t channel, uint8_t len, uint8_t data[]) { if (channel == 0) { if (data[0]) PORTD |= (1<