Datasheet
13
Defines
#define USING_PICKET_FENCE
Defining this preprocessor definition will compile the code for using picket fence waveform.
#define USING_SLIDESHOWS
Defining this preprocessor definition will compile the code for using slideshow waveform.
#define USING_GLOBAL_UPDATES
Defining this preprocessor definition will compile the code for using global update waveform.
#define TRUE (1)
Compiler independent specification of TRUE.
#define FALSE (0)
Compiler independent specification of FALSE.
#define NUM_SEGMENTS (36)
The number of segments physically present on the hardware (not display)
#define GLOBAL_REFRESH_HOLDOFF (10)
Number of physical screen writes before a global update gets applied.
#define BACKGROUND_WHITE (0)
Just a preprocessor definition to make source file readable.
#define BACKGROUND_BLACK (1)
Just a preprocessor definition to make source file readable.
#define NUM_FENCES (40)
The number of toggles present in a picket fence update type waveform.
#define DIR_OUTPUT_ON (0)
MCU Specific value for turning a pin into input mode.
#define DIR_OUTPUT_OFF (1)
MCU Specific value for turning a pin into input mode.
#define SEG_DELAY 200
Specify the amount of delay used when using all other waveforms except PICKET_FENCE.
#define PICKET_SHORT (450 / NUM_FENCES)
#define TOP_PLANE EINK_P05
Indicate which pin is connected to the common electrode.
#define TOP_PLANE_DIR EINK_P05_DIR
Related to the preprocessor definition TOP_PLANE.
Enumerations
enum waveformType { EINK_SLIDE_SHOW_FV, EINK_SLIDE_SHOW_RV, EINK_PICKET_FENCE,
EINK_GLOBAL, EINK_INVERT }
This enum contains the update waveform driving patterns. Each driving pattern has it's own application. For
e.g.: SLIDE_SHOWs are good for driving icons where as PICKET_FENCE is good for driving alphanumeric
digit. enum driverState { FSM_IDLE, FSM_WAIT, FSM_START_UPDATE,
FSM_UPDATE_COMPLETE }
This enum lists the different states that the driver can be in. Functions
void ClearDisplay (uint8_t dir)
Set up the display array to blank.
void einkDriver (void)
Finite state machine, called each time thru main. Used to update and keep the screen in check.