StarProjector/pins.h
Brett Weiland e811d778ea init
2023-10-27 07:10:26 -05:00

32 lines
680 B
C

#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