


offset - offset from the beginning of the resource from where the data is requested.Void Glcd_Set_Ext_Buffer(char* (*getExtDataPtr)( unsigned long offset, unsigned int count, unsigned int *num)) įunction sets pointer to the user function which manipulates the external resource. Writes one byte to the current location in Glcd memory and moves to the next location. Void Glcd_Write_Data( unsigned short ddata) See functions Glcd_Set_Side, Glcd_Set_X, and Glcd_Set_Page. Glcd side, x-axis position and page should be set first. Reads data from from the current location of Glcd memory and moves to the next location. Glcd needs to be initialized, see Glcd_Init routine. The parameter x_pos specifies the Glcd side: values from 0 to 63 specify the left side, values from 64 to 127 specify the right side.įor side, x axis and page layout explanation see schematic at the bottom of this page. Refer to the Glcd datasheet for detailed explanation. Void Glcd_Set_Side( unsigned short x_pos) glcd pinout settings char GLCD_DataPort at PORTC Must be defined before using this function. GLCD_DataPort_Direction : Direction of the Data port.GLCD_RST_Direction : Direction of the Reset signal pin.GLCD_EN_Direction : Direction of the Enable signal pin.

GLCD_RW_Direction : Direction of the Read/Write signal pin.GLCD_RS_Direction : Direction of the Register select signal pin.GLCD_CS2_Direction : Direction of the Chip select 2 pin.GLCD_CS1_Direction : Direction of the Chip select 1 pin.Each of the control lines is both port and pin configurable, while data lines must be on a single port (pins ). The mikroC PRO for AVR provides a library for operating Graphic Lcd 128圆4 (with commonly used Samsung KS108/KS107 controller).įor creating a custom set of Glcd images use Glcd Bitmap Editor Tool.Įxternal dependencies of Graphic Lcd Library The following variables must be defined in all projects using Graphic Lcd Library:
