-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSnakeGame.h
More file actions
35 lines (27 loc) · 725 Bytes
/
SnakeGame.h
File metadata and controls
35 lines (27 loc) · 725 Bytes
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
/*************************************************
* Public Constants
*************************************************/
#define BUTTON_UP 4
#define BUTTON_DOWN 5
#define BUTTON_RIGHT 6
#define BUTTON_LEFT 3
#define LCD_BACKLIGHT_PIN 7
#define LCD_BACKLIGHT_OFF 1
#define LCD_BACKLIGHT_ON 0
#define LCD_INIT_CONTRAST 60
#define SPEAKER 12
#define TONE_FOOD_DURATION 250
#define HIGHSCORE_ADDRESS 1
#define MENU_SCREEN 1
#define SETTINGS_SCREEN 2
#define CONTRAST_SCREEN 3
#define GAME_SCREEN 10
#define HIGHSCORE_SCREEN 4
#define RIGHT 3
#define LEFT 4
#define UP 1
#define DOWN 2
#define WIDTH 84
#define HEIGHT 48
#define BUTTON_COUNT 2
#define WEIGHT 2