D2 <-> DIR
D3 <-> PWM
+Connections for S88 bus:
+D4 <-> RESET
+D5 <-> LOAD
+D6 <-> CLOCK
+D7 <-> DATA
+
ADC connections:
ADC0 - current sensor (adjusted for 185 mV/A, centered at Vcc/2)
ADC1 - input voltage (adjusted for divisor of 11)
#include "interface.h"
#include "monitor.h"
#include "output.h"
+#include "s88.h"
-int main()
+int main(void)
{
output_init();
interface_init();
monitor_init();
+ s88_init();
sei();
{
interface_check();
monitor_check();
+ s88_check();
}
return 0;