LCDWIKI KBV Lib Manual
User Manual:
Open the PDF directly: View PDF .
Page Count: 12
Download | ![]() |
Open PDF In Browser | View PDF |
LCDWIKI KBV lib Manual 1.Introduction The LCDWIKI KBV lib is the hardware level lib of the lcd modules with parallel port,it need be paired with the GUI lib for each display modules. The LCDWIKI KBV lib have the derived class from LCDWIKI GUI lib.if you want to call functions of LCDWIKI GUI lib,you only need to use the LCDWIKI KBV class and you have to do this. The LCDWIKI KBV lib support 8bits and 16bits display.you can open the file of lcd_mode.h to modify. 2.FUNCTIONS DECLARATION definiens LCDWIKI_KBV(uint16_t model,uint8_t cs, uint8_t cd, uint8_t wr, uint8_t rd, uint8_t reset) function The main class constructor when using 8bit or 16bit display modules parameters model : the model of display modules cs : the chip selection pin in Development board cd : the command/data pin in Development board wr : the write control pin in Development board rd : the read control pin in Development board reset : the reset pin in Development board returned value notes None if modules is unreadable or you don't know the width and height of modules,you can use this constructor definiens LCDWIKI_KBV(int16_t wid,int16_t heg,uint8_t cs, uint8_t cd, uint8_t wr, uint8_t rd, uint8_t reset) function The main class constructor when using 8bit or 16bit display modules parameters wid : the width of display modules heg : the height of display modules cs : the chip selection pin in Development board cd : the command/data pin in Development board wr : the write control pin in Development board rd : the read control pin in Development board reset : the reset pin in Development board returned value None notes if modules is readable or you know the width and height of modules,you can use this constructor definiens function void Init_LCD(void) Initialize the LCD modules parameters None returned value None notes None definiens function void reset(void) Reset the LCD modules parameters None returned value None notes None definiens function parameters void start(uint16_t ID) Set the register of LCD modules ID : the identification of LCD modules control chip returned value None notes None definiens function parameters void Draw_Pixe(int16_t x, int16_t y, uint16_t color) Draw a single pixel at a specified coordinate x : the x coordinate of the pixel y : the y coordinate of the pixel color : the color value of the pixel returned value notes None This function overrides the parent class function definiens function parameters void Write_Cmd(uint16_t cmd) Write a 16bit command to the lcd modules cmd : the 16bit command value returned value None notes None definiens function parameters void Write_Data(uint16_t data) Write a 16bit data to the lcd modules data : the 16bit data returned value None notes None definiens function parameters void Write_Cmd_Data(uint16_t cmd, uint16_t data) Write a 16bit command and a 16bit data to the lcd modules cmd : the 16bit command value data : the 16bit data returned value None notes None definiens function parameters void init_table8(const void *table, int16_t size) Write a series of 8bit command and data to the lcd modules table : the array of command and data to point size : the size of the array of command and data returned value None notes None definiens function parameters void init_table16(const void *table, int16_t size) Write a series of 16bit command and data to the lcd modules table : the array of command and data to point size : the size of the array of command and data returned value None notes None definiens function void Push_Command(uint16_t cmd, uint8_t *block, int8_t N) Set a command and a series of 8bit data to the lcd modules at a time parameters cmd : the 16bits command value block : the array of 8bit data to point N : the size of the array of 8bit data returned value None notes None definiens function parameters uint16_t Color_To_565(uint8_t r, uint8_t g, uint8_t b) Pass three 8bits colour value and get the 16bits colour value r : the 8bits red value g : the 8bits green value b : the 8bits blue value returned value notes The 16bits colour value(rrrrrggggggbbbbb) This function overrides the parent class function definiens function parameters returned value notes definiens uint16_t Read_ID(void) Read the identification of LCD modules control chip None the identification of LCD modules control chip None void Fill_Rect(int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color) function Using color value to draw a filled rectangle with w width and h height in x and y coordinate parameters x : the x coordinate of the start-corner y : the y coordinate of the start-corner w : the width of the rectangle h : the height of the rectangle color : the color value of the filled rectangle returned value This function overrides the parent class function notes None definiens function parameters void Set_Rotation(uint8_t r) Set the rotation of the screen r : the value of rotation. 0-0 degree 1-90 degree 2-180 degree 3-270 degree returned value None notes None definiens function parameters returned value uint8_t Get_Rotation(void) const get the rotation of the screen None 0-0 degree 1-90 degree 2-180 degree 3-270 degree notes definiens function parameters None void Invert_Display(boolean i) Select display the anti-color or not i : 0-don't display the anti-color(normal) 1- display the anti returned value None notes None definiens uint16_t Read_Reg(uint16_t reg, int8_t index) function read value from lcd register parameters reg : the command of read index : the number of read returned value notes definiens The value of reading from lcd register None int16_t Read_GRAM(int16_t x, int16_t y, uint16_t *block, int16_t w, int16_t h) function parameters Read colour value from GRAM x : the x coordinate of the start-corner y : the y coordinate of the start-corner block : the array of saving colour value w : the width of the Read area h : the heigth of the Read area returned value notes definiens 0-successful This function overrides the parent class function void Set_Addr_Window(int16_t x1, int16_t y1, int16_t x2, int16_t y2) function parameters Set display area bewteen two point x1 : the x coordinate of the start-corner y1 : the y coordinate of the start-corner x2 : the x coordinate of the end-corner y2 : the y coordinate of the end-corner returned value notes definiens None This function overrides the parent class function void Push_Any_Color(uint16_t * block, int16_t n, bool first, uint8_t flags) function parameters Set a large number of 16bit color values at a time block : the array of 16bit colour values n : the number of colour values first : 1- First set the command of write color value 0-have set the command of write color value flags : 0-read color value from RAM 1-read color value from flash returned value notes definiens None This function overrides the parent class function void Push_Any_Color(uint8_t * block, int16_t n, bool first, uint8_t flags) function parameters Set a large number of 8bit color values at a time block : the array of 8bit colour values n : the number of colour values first : 1- First set the command of write color value 0-have set the command of write color value flags : 0-read color value from RAM 1-read color value from flash returned value None notes None definiens void Vert_Scroll(int16_t top, int16_t scrollines, int16_t offset) function parameters scroll display top : vertical start position scrollines : the lines of scroll offset : the offset of scroll returned value None notes None definiens function parameters returned value notes definiens function int16_t Get_Height(void) const Get the display height None The diaplay height This function overrides the parent class function int16_t Get_Width(void) const Get the display width parameters returned value notes None The diaplay width This function overrides the parent class function definiens function void Set_LR(void) Set the coordinate of the lower-right corner parameters None returned value None notes This function is only for 0x7575 lcd modules
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.6 Linearized : Yes Encryption : Standard V4.4 (128-bit) User Access : Print, Annotate, Fill forms, Extract, Print high-res Author : pc Create Date : 2018:06:21 06:53:21Z Modify Date : 2018:11:03 14:26:41+08:00 Language : en-US Tagged PDF : Yes XMP Toolkit : Adobe XMP Core 5.6-c015 81.157285, 2014/12/12-00:43:15 Format : application/pdf Creator : pc Creator Tool : Microsoft® Word 2016 Metadata Date : 2018:11:03 14:26:41+08:00 Producer : www.ilovepdf.com Document ID : uuid:850a374c-d644-4d4f-bf31-491655ecb288 Instance ID : uuid:dfb2d5c8-647d-4992-a16f-1ce4b1d64829 Page Count : 12EXIF Metadata provided by EXIF.tools