42 lines
1.6 KiB
C

/*****************************************************************************
* MIDI Footswitch *
* Copyright (C) 2014-2018 Stefan Kalscheuer *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation version 3. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
*****************************************************************************/
/**
* 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