Subversion Repositories HomeAutomation

Rev

Rev 193 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 193 Rev 196
Line 22... Line 22...
22
 
22
 
23
#define MAIN_VIEW       0
23
#define MAIN_VIEW       0
24
#define TEMPSENS_VIEW   1
24
#define TEMPSENS_VIEW   1
25
#define RELAYS_VIEW     2
25
#define RELAYS_VIEW     2
26
#define DIMMERS_VIEW    3
26
#define DIMMERS_VIEW    3
27
 
-
 
28
#define DATA1           3,1
-
 
29
#define DATA2           13,1
-
 
30
#define DATA3           3,2
-
 
31
#define DATA4           13,2
-
 
32
 
27
 
33
/*---------------------------------------------------------------
28
/*---------------------------------------------------------------
34
 * Functions
29
 * Functions
35
 * ------------------------------------------------------------*/
30
 * ------------------------------------------------------------*/
36
void printLCDview(uint8_t view);
31
void printLCDview(uint8_t view);
37
void printLCDviewData(uint8_t view, uint8_t *data);
32
void printLCDviewData(uint8_t view, uint8_t *data, uint8_t size);
38
 
33
 
39
/*---------------------------------------------------------------
34
/*---------------------------------------------------------------
40
 * Views
35
 * Views
41
 * <Line 1> <Line 2> <Line 3> <Left> <Right>
36
 * <Line 1> <Line 2> <Line 3> <Left> <Right>
42
 *--------------------------------------------------------------*/
37
 *--------------------------------------------------------------*/
43
char viewStrings[][ MAX_LENGTH ] = {
38
static char viewStrings[][ MAX_LENGTH ] = {
44
    /* Main view */
39
    /* Main view */
45
    "HomeAutomation", "", "Welcome", "NA", "Temp",
40
    "HomeAutomation", "", "Welcome", "NA", "Temp",
46
    /* Temperature sensors */
41
    /* Temperature sensors */
47
    "Temperature Sensors", "1: NA     2: NA", "3: NA     4: NA", "Main", "Relay",
42
    "Temperature Sensors", "1: NA     2: NA", "3: NA     4: NA", "Main", "Relay",
48
    /* Relay status */
43
    /* Relay status */
49
    "Relay Status", "1: NA     2: NA", "3: NA    4: NA", "Temp", "Dimmer",
44
    "Relay Status", "1: NA     2: NA", "3: NA    4: NA", "Temp", "Dimmer",
50
    /* Dimmer status */
45
    /* Dimmer status */
51
    "Dimmer Status", "1: NA     2: NA", "3: NA    4: NA", "Relay", "NA"
46
    "Dimmer Status", "1: NA     2: NA", "3: NA    4: NA", "Relay", "NA"
52
};
47
};
-
 
48
 
-
 
49
static uint8_t dataPos[][2] = {
-
 
50
    {3,1}, /* Data position 1 */
-
 
51
    {13,1}, /* Data position 2 */
-
 
52
    {3,2}, /* Data position 3 */
-
 
53
    {13,2} /* Data position 4 */
-
 
54
};
-
 
55
 
53
 
56