Solo Controller Documentation 1.0
Documentation for the Solo Controller
 
Loading...
Searching...
No Matches
Common.h
Go to the documentation of this file.
1/******************************************************************************/
5
6#ifndef COMMON_HEADER
7#define COMMON_HEADER
8
9#include "TFTM070A1.h"
10#include "Definitions.h"
11
12// Display and Touch Controller
13#define CTP_INT 2
14#define TFT_WAIT 3
15#define TFT_INT 4
16#define TFT_SD_CS 5
17#define CTP_WAKE 6
18#define CTP_NOTIF 7
19#define TFT_BL 8
20#define TFT_RESET 9
21#define TFT_CS 10
22
23// Arduino pins
24#define SCK 52
25#define MISO 50
26#define MOSI 51
27
28// Controller pins
29#define MCU_RST_TFT A0
30#define ALARM A1
31#define VOL_SENSOR A15
32#define ELEM_CNTRL 39
33#define INTERLOCK_STATUS A2
34#define AUX_OUT 35
35#define PUMP_OUT 37
36#define CONTACTOR_STATUS A3
37#define ELEM_SWITCH_LED 39
38#define BUZZER 41
39#define KETTLE_CS 47
40#define CHILLER_CS 49
41
46{
47 /******************************************************************************/
51 const struct TextBox_Config
52 {
53 // unitsWidth, height, baseline
59 Shape_t MonoFonto_64_32sm_Config = {25, 60, 50}; // Smaller Units width
61
62 const struct
63 {
64 // x, y, textWidth, shape, TextFont, UnitsFont
72 } MAIN;
73}
74
75#endif
Defines common data structures used by the Display module.
Low level device driver for the TFT.
@ Red180
Red monospace font of size 180.
Definition FontList.h:36
@ White90
White monospace font of size 90.
Definition FontList.h:37
@ Blue64
Blue monospace font of size 64.
Definition FontList.h:39
@ White32
White monospace font of size 32.
Definition FontList.h:41
@ Red64
Red monospace font of size 64.
Definition FontList.h:38
Namespace containing configuration information for TextBoxes.
Definition Common.h:46
ConfigTextBox_t minVolume
Definition Common.h:69
ConfigTextBox_t kettleTemp
Definition Common.h:65
ConfigTextBox_t setTemp
Definition Common.h:66
const struct TextBoxConfig::TextBox_Config TEXTBOX_SHAPE
ConfigTextBox_t elemOut
Definition Common.h:67
ConfigTextBox_t volume
Definition Common.h:68
ConfigTextBox_t chillerTemp
Definition Common.h:70
ConfigTextBox_t minChillerTemp
Definition Common.h:71
const struct TextBoxConfig::@260160204376046162125233241340021221077253227105 MAIN
Defines the location and configuration of TextBoxes used by the main menu.
Configuration information for a TextBox object.
Definition Definitions.h:38
Structure defining basic geometric characteristics of fonts.
Definition Definitions.h:19
Defines TextBox shape information based upon the sizes of the fonts being used.
Definition Common.h:52
Shape_t MonoFonto_64_20_Config
Definition Common.h:57
Shape_t MonoFonto_90_32_Config
Definition Common.h:56
Shape_t MonoFonto_180_90_Config
Definition Common.h:54
Shape_t MonoFonto_64_32_Config
Definition Common.h:58
Shape_t MonoFonto_64_32sm_Config
Definition Common.h:59
Shape_t MonoFonto_180_64_Config
Definition Common.h:55