summaryrefslogtreecommitdiff
path: root/pins.h
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2023-10-27 07:10:26 -0500
committerBrett Weiland <brett_weiland@bpcspace.com>2023-10-27 07:10:26 -0500
commite811d778ea51ac1e25588a9cc957fca4f532ea5a (patch)
treed28999567bad4613143d016bfb6d376c22f9e3a2 /pins.h
init
Diffstat (limited to 'pins.h')
-rw-r--r--pins.h31
1 files changed, 31 insertions, 0 deletions
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