* renamed methods and fields using camelCase notation * merged nested if-statements * removed unused globals
25 lines
382 B
C
25 lines
382 B
C
/**
|
|
* MIDI Footswitch
|
|
*
|
|
* @file main.h
|
|
* @author Stefan Kalscheuer
|
|
* @date 2014-06-17
|
|
*/
|
|
|
|
#define IN_SW PIND
|
|
#define SW1 PD2
|
|
#define SW2 PD3
|
|
|
|
#define IN_BTN PINB
|
|
#define BTN1 PB0
|
|
#define BTN2 PB1
|
|
#define BTN3 PB2
|
|
#define BTN4 PB3
|
|
|
|
#define OUT_LED PORTD
|
|
#define LED_RT PD5
|
|
#define LED_GN PD4
|
|
|
|
#define BTN_THRESHOLD 50
|
|
#define BTN_MAX 100
|