Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
484
mikoC PRO for PIC32
MikroElektronika
SPI Graphic Lcd Library
mikroC PRO for PIC32 provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/
KS107 controller) via SPI interface.
For creating a custom set of Glcd images use Glcd Bitmap Editor Tool.
Important:
 
- When using this library with PIC32 family MCUs be aware of their voltage incompatibility with certain number of 
Samsung KS0108 based Glcd modules. 
So, additional external power supply for these modules may be required. 
- Library uses the SPI module for communication. The user must initialize the appropriate SPI module before using the 
SPI Glcd Library. 
- For MCUs with multiple SPI modules it is possible to initialize all of them and then switch by using the 
SPI_Set_
Active()
 routine. See the SPI Library functions. 
- This Library is designed to work with the mikroElektronika’s Serial Lcd/Glcd Adapter Board pinout, see schematic at 
the bottom of this page for details. 
Library Dependency Tree
External dependencies of SPI Lcd Library
The implementation of SPI Lcd Library routines is based on Port Expander Library routines.
External dependencies are the same as Port Expander Library external dependencies.
Library Routines
Basic routines:
 
- SPI_Glcd_Init 
 
- SPI_Glcd_Set_Side 
 
- SPI_Glcd_Set_Page 
 
- SPI_Glcd_Set_X 
 
- SPI_Glcd_Read_Data 
 
- SPI_Glcd_Write_Data 
Advanced routines:
 
- SPI_Glcd_Fill 
 
- SPI_Glcd_Dot 
 
- SPI_Glcd_Line 
 
- SPI_Glcd_V_Line 
 
- SPI_Glcd_H_Line