-
Notifications
You must be signed in to change notification settings - Fork 0
/
arduino-cocktail.ino
executable file
·45 lines (36 loc) · 1.16 KB
/
arduino-cocktail.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
/*
* Arduino-Cocktail
*
* Main Logic
* Copyright 2017 by Thomas Buck <[email protected]>
*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <[email protected]> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you can buy me a beer in return. Thomas Buck
* ----------------------------------------------------------------------------
*/
#include "dispenser.h"
#include "display.h"
#include "ui.h"
#define BAUDRATE 115200
#define VERSION_ID "1.0"
void setup(void) {
Serial.begin(BAUDRATE);
Serial.println(); // skip garbage data after reset
Serial.println(F("Initializing arduino-cocktail..."));
initDispenser();
Serial.println(F("Initializing OLED..."));
initDisplay();
DRAW_SPLASH();
Serial.println(F("Showing splash screen..."));
delay(2500);
Serial.println(F("Preparing Menu interface..."));
initUI();
Serial.println(F("Finished. Entering main loop!"));
}
void loop(void) {
dispenserThread();
MenuEntry::menu();
}