If we add an 8-1 multiplexer, we can check up to 8 inputs with only 4 pins.
Start Input
Reverse Input
Brake Light In
AC Plug In
Speed Sensor In
We can check most of these every second, for the rest of the time we could have the speed sensor (hall effect?) connected to an interrupt.
|