Syntax
EpdSetUp(bOrientation As Byte, bPanel As Byte)
Parameters
bOrientation — Origin And Direction
bPanel — Panel / driver variant selector. Selects a panel-specific driver configuration when required
Sets up and configures the display.
Sets up the screen by applying the necessary register settings and configuring the panel orientation.
Unlike a TFT display, there's no hardware register on the EPD driver IC to set orientation directly (on a TFT controller, this is typically the MADCTL register) — bOrientation here is purely a software marker the library uses internally to determine how and in what order pixels get written.
The virtual origin — regardless of the currently set orientation — is always the bottom-left corner, with coordinates increasing left-to-right and bottom-to-top.
Think of it as if the EPD panel itself were being rotated: (0,0) is always the bottom-left corner from the software's point of view, no matter which physical orientation is selected.
Note: Some EPD panels require a delay of about 1 second after power-on, or they won't initialize correctly; others are ready to accept commands after as little as 200ms. As a rule of thumb, use a 1-second delay.
|
DelayMS 1000 EpdSetUp(0,0) 'Set display |
Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle