NOKIA5110_TEXT
2.4.0
Arduino Eco-system Library for Nokia 5110 LCD ( PCD8544 controller)
|
Nokia library header file. More...
#include "WProgram.h"
#include <SPI.h>
Go to the source code of this file.
Classes | |
class | NOKIA5110_TEXT |
Macros | |
#define | SPIHW_ON |
SPI HARDWARE SECTION Comment this define(SPIHW_ON) in for hardware SPI , software SPI is default. | |
#define | SPI_FREQ 8000000 |
#define | LCD_HIGH_FREQ_DELAY 1 |
#define | LCD_COMMAND_MODE 0x21 |
#define | LCD_CONTRAST 0xBF |
#define | LCD_TEMP_COEF 0x04 |
#define | LCD_BIAS 0x14 |
#define | LCD_FUNCTIONSET 0x20 |
#define | LCD_DISPLAYCONTROL 0x0C |
#define | LCD_DISPLAYCONTROL_INVERSE 0x0D |
#define | LCD_POWERDOWN 0x24 |
#define | LCD_RESET_DELAY 50 |
#define | LCD_COMMAND 0 |
#define | LCD_DATA 1 |
#define | LCD_X 84 |
#define | LCD_Y 48 |
#define | _LCD_CLK_SetHigh digitalWrite(_LCD_CLK, true) |
#define | _LCD_CLK_SetLow digitalWrite(_LCD_CLK, false) |
#define | _LCD_DIN_SetHigh digitalWrite(_LCD_DIN, true) |
#define | _LCD_DIN_SetLow digitalWrite(_LCD_DIN, false) |
#define | _LCD_DC_SetHigh digitalWrite(_LCD_DC, true) |
#define | _LCD_DC_SetLow digitalWrite(_LCD_DC, false) |
#define | _LCD_CE_SetHigh digitalWrite(_LCD_CE, true) |
#define | _LCD_CE_SetLow digitalWrite(_LCD_CE, false) |
#define | _LCD_RST_SetHigh digitalWrite(_LCD_RST, true) |
#define | _LCD_RST_SetLow digitalWrite(_LCD_RST, false) |
Enumerations | |
enum | LCDFontType_e : uint8_t { LCDFont_Default = 1 , LCDFont_Thick = 2 , LCDFont_HomeSpun = 3 , LCDFont_Seven_Seg = 4 , LCDFont_Wide = 5 , LCDFont_Tiny = 6 , LCDFont_Large = 7 , LCDFont_Huge = 8 , LCDFont_Mega = 9 } |
enum | LCDPaddingType_e : uint8_t { LCDPadding_None = 0 , LCDPadding_LHS = 1 , LCDPadding_RHS = 2 , LCDPadding_Both = 3 } |
Nokia library header file.
Project Name NOKIA5110_TEXT URL:https://github.com/gavinlyonsrepo/NOKIA5110_TEXT
#define LCD_BIAS 0x14 |
LCD bias mode 1:48: Try 0x12 , 0x13 or 0x14
#define LCD_COMMAND 0 |
Send an LCD command
#define LCD_COMMAND_MODE 0x21 |
FUNCTIONSET + extended instruction
#define LCD_CONTRAST 0xBF |
Set LCD VOP Contrast Try 0xB1 or 0xBF if is too dark range = ((0x00-0x7F) |0x80)
#define LCD_DATA 1 |
Send data to LCD
#define LCD_DISPLAYCONTROL 0x0C |
Set display control, normal mode. 0x0D for inverse
#define LCD_DISPLAYCONTROL_INVERSE 0x0D |
Set display control, inverse mode. 0x0D for inverse
#define LCD_FUNCTIONSET 0x20 |
We must send 0x20 before modifying the display control mode
#define LCD_POWERDOWN 0x24 |
LCD power off
#define LCD_TEMP_COEF 0x04 |
Set Temp coefficient
#define LCD_X 84 |
LCD Width in pixels
#define LCD_Y 48 |
LCD Height in pixels
enum LCDFontType_e : uint8_t |
Enum to define current font type selected
enum LCDPaddingType_e : uint8_t |