diff options
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 |