brewco/keyboard.h

Sun, 27 Dec 2015 17:52:26 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 27 Dec 2015 17:52:26 +0100
changeset 477
9167ad4c2e77
parent 451
2247970de278
permissions
-rw-r--r--

Renamed Mash-in step to Prepare on the display. Don't run the pump when the mash is added. When preparing the mash, first heat the HLT, and then the MLT so that both have the chance to reach their target temperatures.

435
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 #ifndef _KEYBOARD_H
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 #define _KEYBOARD_H
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 /*
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 * GPIO pins for the push buttons.
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 */
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 #define PANEL_RETURN 3
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 #define PANEL_ENTER 4
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 #define PANEL_DOWN 5
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 #define PANEL_UP 6
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 /*
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 * Key names
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 */
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 #define KEY_NONE 0
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 #define KEY_UP 1
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20 #define KEY_DOWN 2
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 #define KEY_RETURN 3
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22 #define KEY_ENTER 4
451
2247970de278 Manual mode added.
Michiel Broek <mbroek@mbse.eu>
parents: 441
diff changeset
23 #define KEY_ESCAPE 12
435
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 #define KEY_ALL 99
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26
441
bde74a8f2ad7 Added automate state file.
Michiel Broek <mbroek@mbse.eu>
parents: 435
diff changeset
27 int keywait(void);
435
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 int keycheck(void);
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 #ifdef HAVE_WIRINGPI_H
441
bde74a8f2ad7 Added automate state file.
Michiel Broek <mbroek@mbse.eu>
parents: 435
diff changeset
31 PI_THREAD (my_keyboard_loop);
435
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
32 #else
441
bde74a8f2ad7 Added automate state file.
Michiel Broek <mbroek@mbse.eu>
parents: 435
diff changeset
33 void *my_keyboard_loop(void *);
435
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
34 #endif
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
35
4b1ed6897d80 More configuration items added.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
36 #endif

mercurial