-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
41 lines (39 loc) · 881 Bytes
/
main.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
/**
* ---------------------------------------------------+
* @desc Main file
* ---------------------------------------------------+
* @copyright Copyright (C) 2020 Marian Hrinko.
* @author Marian Hrinko
* @email mato.hrinko@gmail.com
* @datum 22.12.2016
* @update 04.12.2020
* @file main.c
* @version 2.0
* @tested AVR Atmega16
* ---------------------------------------------------+
*/
#include "lib/pcd8544.h"
/**
* @desc Main function
*
* @param Void
*
* @return Void
*/
int main(void)
{
// init LCD
PCD8544_Init();
// clear screen
PCD8544_ClearScreen();
// set position
PCD8544_SetTextPosition(0, 3);
// draw string
PCD8544_DrawString("Init LCD");
// update
PCD8544_UpdateScreen();
// EXIT
// -------------------------------------------------
// return & exit
return 0;
}