/* Brainuino Aleph Copyright (C) 2011, 2014 Dmitry Mikhirev 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, either version 3 of the License, or (at your option) any later version. 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 . */ /* arduino pinout digital pins 0 and 1 reserved for PC connection digital pins 2 and 3 must be used for interrupts */ #ifndef pinout_h #define pinout_h // undefine the following if your LCD does not support Russian font #define RUSSIAN enum { // digital pins connected to LCD display LCD4 = 7, LCD6 = 8, LCD11 = 9, LCD12 = 10, LCD13 = 11, LCD14 = 12, /* pins 1 and 5 of LCD must be connected to GND, pin 2 - to +5V pin 3 - to 10K potentiometer pins 15 and 16 (both optional) - to +5V (thru 50-100 Ohm resistor) and GND respectively pins 7-10 - no connection */ // digital pin connected to speaker SPEAKER = 5, // digital pin connected to LED lamp GREENLAMP = 13, REDLAMP = 6, // digital pins connected to players' buttons BUTTON1 = 14, BUTTON2 = 15, BUTTON3 = 16, BUTTON4 = 17, // digital pins connected to control buttons // start/OK button CONTROL1 = 18, // break/cansel button CONTROL2 = 19, // digital pin connected to encoder button ENCPUSH = 20, // digital pin connected to encoder 'B' output ENCODERB = 4, // encoder 'A' output must be connected to Arduino D3 }; #endif