-
Notifications
You must be signed in to change notification settings - Fork 0
/
menuPanel.c
58 lines (49 loc) · 1.62 KB
/
menuPanel.c
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
46
47
48
49
50
51
52
53
54
55
56
57
58
// Author: Annim Banerjee.
// ECS: Elite Cab Suite Device.
//..............................................................
// Controller: P89V51RD2
// Connections.................................................
// SD Card: SPI Connection.
// RTC: SDA P1_1, SCL:P1_2.
// Keypad: 4x4: P3
// LCD: 20x4: P2; 4bit mode.
// LED: P2_0, P1_0, P1_4; LED pulled to Ground.
//..............................................................
//File: menuPanel.c
//
//Main Menu panel Source code...................................
//
//ECS |<Symbol> Setting. |
//Menu|<Symbol> Sync Mode. |
// |<Symbol> Data Mode. |
//---------------------------------------------------------------
void ecs_MainMenu() //Main Menu for Navigation with options...
{
char cToCount;
clearLcdScreen();
key_init();
setCursorLcd( 0, 0);
displayStringLcd("ECS");
setCursorLcd( 1, 0);
displayStringLcd("Main");
setCursorLcd( 2, 0);
displayStringLcd("Menu");
for(cToCount =0;cToCount<3; cToCount++){
setCursorLcd(cToCount, 4);
displayCharLcd( 4 );
}
setCursorLcd(0, 5);
displayCharLcd( 0x7f); //box symbol ascii equivalentt hex code...
displayStringLcd("Sync Data...");
setCursorLcd( 1, 5 );
displayCharLcd( 0xdb ); //symbol for Sync mode operation.'<-'
displayStringLcd( "Settings...");
setCursorLcd( 2, 5 );
displayCharLcd( 0x7e ); //symbol for Data mode operation. '->'
displayStringLcd( "Data Entry...");
for(cToCount =0;cToCount<20; cToCount++){
setCursorLcd(3, cToCount);
displayCharLcd( 1 );
}
CursorOff();
}