#include #include #include #include "relaishw.h" #include "rs485.h" #include "eb.h" uint8_t testled; uint8_t testbutton; uint8_t relais1state; uint8_t relais2state; uint8_t pc0state; uint8_t pc1state; uint8_t waitforack; uint8_t waitforsend; uint8_t acktimer; int main(void) { uint8_t i; init_rs485(); DDRD |= (1< 1) && (rchannel < 4))) { ADMUX = (ADMUX & ~(0x1F)) | (rchannel); ADCSRA |= (1<