EpdSetBorder()

Library Description ›› EPD ›› Common ›› Setup ››
Parent Previous Next

Syntax

EpdSetBorder(wColor As Word)

Parameters

wColor — Border color (Black / White / Red / Yellow)


Sets the color of the border line around the display's active pixel area. 


This doesn't take effect immediately — it must be issued before the next screen update, and the new border color will only appear once that update actually runs.


Note: EPD panels always show some border/frame color surrounding the active pixel area.
Many controller ICs expose a border- or VCOM-related register or LUT specifically for controlling this independently of the main image.
However, whether this is actually controllable in practice depends on how the border signal is wired at the panel level, not just on what the controller IC's datasheet claims it supports.
Some panels tie the border connection directly to VCOM or ground at the glass/FPC level, bypassing the controller's programmable border function entirely — on these panels, writing to the border register has no visible effect, or behaves inconsistently, regardless of the IC's general capability.


    DelayMS 1000

    EpdSetUp(0,0)                                                   'Set display

    EpdSetBorder(WHITE)                                             'Set border 

Created with the Personal Edition of HelpNDoc: Easy EBook and documentation generator