ATtiny85 Template Code
Code snippets for the ATtiny85
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
nokialcd.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*
2 * Nokia LCD Interface
3 *---------------------------------------------------------------------------*
4 * 26-Apr-2014 ShaneG
5 *
6 * Simple routines for controlling a Nokia LCD.
7 *--------------------------------------------------------------------------*/
8 #ifndef __NOKIALCD_H
9 #define __NOKIALCD_H
10 
11 //--- Required definitions
12 #include <stdint.h>
13 #include <stdbool.h>
14 
16 #define LCD_COL 84
17 
19 #define LCD_ROW 6
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
31 void lcdInit();
32 
37 void lcdData(uint8_t data);
38 
43 void lcdCommand(uint8_t cmd);
44 
52 void lcdClear(bool invert);
53 
62 void lcdClearRow(uint8_t row, bool invert);
63 
80 void lcdPrintChar(uint8_t row, uint8_t col, char ch, bool invert);
81 
101 void lcdPrint(uint8_t row, uint8_t col, const char *str, bool invert);
102 
122 void lcdPrintP(uint8_t row, uint8_t col, const char *str, bool invert);
123 
140 void lcdImageP(uint8_t row, uint8_t col, const uint8_t *img, bool invert);
141 
142 #ifdef __cplusplus
143 } // extern "C"
144 #endif
145 
146 #endif /* __NOKIALCD_H */
147 
void lcdClearRow(uint8_t row, bool invert)
void lcdClear(bool invert)
void lcdInit()
void lcdData(uint8_t data)
void lcdPrint(uint8_t row, uint8_t col, const char *str, bool invert)
void lcdPrintP(uint8_t row, uint8_t col, const char *str, bool invert)
void lcdCommand(uint8_t cmd)
void lcdPrintChar(uint8_t row, uint8_t col, char ch, bool invert)
void lcdImageP(uint8_t row, uint8_t col, const uint8_t *img, bool invert)