40 #ifndef __SHARPLCD_H__
41 #define __SHARPLCD_H__
56 #define MAX_PALETTE_COLORS 2
58 #define SHARP_BLACK 0x00
59 #define SHARP_WHITE 0xFF
61 #define SHARP_SEND_TOGGLE_VCOM_COMMAND 0x01
62 #define SHARP_SKIP_TOGGLE_VCOM_COMMAND 0x00
64 #define SHARP_LCD_TRAILER_BYTE 0x00
66 #define SHARP_VCOM_TOGGLE_BIT 0x40
67 #define SHARP_LCD_CMD_CHANGE_VCOM 0x00
68 #define SHARP_LCD_CMD_CLEAR_SCREEN 0x20
69 #define SHARP_LCD_CMD_WRITE_LINE 0x80
96 #define DPYCOLORTRANSLATE(c) ((c != 0) ? c = 1 : c) // Why not (!!c)?
109 #endif // __SHARPLCD_H__
uint8_t PIN_Id
Pin identifier data type.
Definition: PIN.h:557
SPI Global configuration.
Definition: SPI.h:436
const tDisplayFxns g_sharpFxns
underlying data structure for type PIN_State
Definition: PIN.h:687
This structure defines the implementation of a display driver.
Definition: grlib.h:136
void SharpGrLib_sendToggleVCOMCommand()
Generic PIN & GPIO driver.
void SharpGrLib_init(SPI_Handle hSpi, PIN_Handle hPin, PIN_Id csPin)