1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*
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 <http://www.gnu.org/licenses/>.
*/
/* 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
|