Solo Controller Documentation 1.0
Documentation for the Solo Controller
 
Loading...
Searching...
No Matches
Common.h
Go to the documentation of this file.
1/*******************************************************************************
2 * @file Common.h
3 * @brief Common definitions used throughout the SoloContoller app.
4 ******************************************************************************/
5
6#ifndef COMMON_HEADER
7#define COMMON_HEADER
8
9#include <Arduino.h>
10#include "TFTM070A1.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 23
33#define INTERLOCK_STATUS 25
34#define AUX_OUT 31
35#define PUMP_OUT 33
36#define CONTACTOR_STATUS 37
37#define ELEM_SWITCH_LED 39
38#define BUZZER 41
39#define KETTLE_CS 47
40#define CHILLER_CS 49
41
44{
45 uint32_t address;
46 uint16_t width;
47 uint16_t height;
48};
49
52{
53 uint16_t x;
54 uint16_t y;
55 uint16_t width;
56 uint16_t height;
57};
58#endif
Structure to define sub-images. Generally associated with a ROM_Image.
Definition Common.h:52
uint16_t x
Definition Common.h:53
uint16_t y
Definition Common.h:54
uint16_t width
Definition Common.h:55
uint16_t height
Definition Common.h:56
Structure to define the size and location of an image in Flash.
Definition Common.h:44
uint16_t width
Definition Common.h:46
uint32_t address
Definition Common.h:45
uint16_t height
Definition Common.h:47