From e811d778ea51ac1e25588a9cc957fca4f532ea5a Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Fri, 27 Oct 2023 07:10:26 -0500 Subject: init --- pins.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pins.h (limited to 'pins.h') diff --git a/pins.h b/pins.h new file mode 100644 index 0000000..8206fda --- /dev/null +++ b/pins.h @@ -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 -- cgit v1.2.3