-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdva_lcd.ino
50 lines (45 loc) · 1.03 KB
/
dva_lcd.ino
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
/* dva_lcd file
* Defines the vars and
* functions used to
* display information and
* data on lcd screen
*--------------------------*/
//TODO: redo
//Include and defines
/*
#ifndef _INCLUDED_LCD
#include <LiquidCrystal_I2C.h>
#define _INCLUDED_LCD
#endif
#define BACKLIGHT_PIN 3
*/
//variables
///LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7);
/* lcd_setup function
* Used to setup the lcd and
* it's variables
*---------------------------------
* returns: void
* ------------------------------
void lcd_setup(){
lcd.setBacklightPin(BACKLIGHT_PIN, POSITIVE);
lcd.setBacklight(HIGH); // NOTE: You can turn the backlight off by setting it to LOW instead of HIGH
lcd.begin(16, 2);
}
*/
/* lcd_print function
* Used to print data on the
* lcd screen; also resets
* the screen on call
*---------------------------------
* @data: characters the lcd
* will print
* --------------------------------
* returns: void
* ------------------------------
void lcd_print(char* data){
lcd.clear();
lcd.setCursor(0,0);
lcd.println(data);
}
*/