...
Input Device | Pin |
---|---|
Power | PC0 |
Gas Pedal | PC1 |
Direction Selector | PC2 - PC3 |
Cruise Control | PC4 |
Cruise Control Increase | PC5 |
Cruise Control Decrease | PC6 |
Turn Signal | PB7 - PB8 |
Hazard Light Switch | PB9 |
Hazard Light | PC10 |
Handling
...
Inputs
The driver control inputs will be connected to onboard GPIOs. As we are only concerned with handling each input as they are triggered, most of the inputs will be set to be handled through the use of a common ISR (for the prototype, we will collect information on the gas pedal through polling).
...