diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2023-10-27 07:10:26 -0500 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2023-10-27 07:10:26 -0500 |
commit | e811d778ea51ac1e25588a9cc957fca4f532ea5a (patch) | |
tree | d28999567bad4613143d016bfb6d376c22f9e3a2 /pins.h |
init
Diffstat (limited to 'pins.h')
-rw-r--r-- | pins.h | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +#ifndef PINS_H +#define PINS_H + +//TODO maybe clarify pin names, lazy rn + +//digital input register includes our buttons +#define DIGITAL_INPUT_DDR DDRA +#define DIGITAL_INPUT_PORT PORTA + +#define MODE_BUTTON_P PORTA0 +#define SELECT_BUTTON_P PORTA1 + +//analog input we'll dedicate to analog inputs (only the single potentiometer) +#define ADC_DDR DDRF + +//all of this register will be used as our 8 pwm outputs +#define SOFTPWM_DDR DDRC +#define SOFTPWM_PORT PORTC + +#define LED_W_1 PORTC0 +#define LED_W_2 PORTC1 + +#define LED_R_1 PORTC2 +#define LED_G_1 PORTC3 +#define LED_B_1 PORTC4 + +#define LED_R_2 PORTC5 +#define LED_G_2 PORTC6 +#define LED_B_2 PORTC7 + +#endif |