-
Notifications
You must be signed in to change notification settings - Fork 0
/
Nokia_5110_LCD_GameOfLife.ino
61 lines (43 loc) · 1.46 KB
/
Nokia_5110_LCD_GameOfLife.ino
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
/* _ ______ __ __ _______ ___________________ __ __________
/ | / / __ \/ //_// _/ | / ____/ ____< / __ \ / / / ____/ __ \
/ |/ / / / / ,< / // /| | /___ \/___ \ / / / / / / / / / / / / /
/ /| / /_/ / /| |_/ // ___ | ____/ /___/ // / /_/ / / /___/ /___/ /_/ /
/_/ |_/\____/_/ |_/___/_/ |_| /_____/_____//_/\____/ /_____/\____/_____/
______ ____ __ _ ____
/ ____/___ _____ ___ ___ ____ / __/ / / (_) __/__
/ / __/ __ `/ __ `__ \/ _ \ / __ \/ /_ / / / / /_/ _ \
/ /_/ / /_/ / / / / / / __/ / /_/ / __/ / /___/ / __/ __/
\____/\__,_/_/ /_/ /_/\___/ \____/_/ /_____/_/_/ \___/
Nokia 5510 / Arduino Demo: Game of Life
Uses Adafruit PCD8544 and GFX libraries
igotbugs@ticklemynausea.net */
#include "Matrix.h"
#include "Display.h"
#include "LED.h"
#include "Buttons.h"
#include "Routine.h"
#ifndef _include_libs_adafruit_
#define _include_libs_adafruit_
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#endif _include_libs_adafruit_
/* Setup & Loop */
void setup() {
// Initialize display
Display::Initialize();
// Initialize gpio pins
LED::Initialize();
// Initialize buttons
Buttons::Initialize();
// Initialize Matrix
Matrix::InitializeRandom();
// initialize Routine
Routine:: Initialize();
}
void loop() {
Routine::DisplayUpdate();
Routine::UpdateMatrix();
Routine::Led();
Routine::Buttons();
Routine::Sleep();
}