Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI Graphic Lcd Library
The mikroPascal PRO for AVR 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.
Note: The library uses the SPI module for communication. User must initialize SPI
module before using the SPI Graphic Lcd Library.
Note: 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.
External dependencies of SPI Graphic Lcd Library
The implementation of SPI Graphic Lcd Library routines is based on Port Expander
Library routines.
Prior to calling any of this library routines, Spi_Rd_Ptr needs to be initialized with the
appropriate SPI_Read routine.
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 
- SPI_Glcd_Rectangle 
- SPI_Glcd_Box 
- SPI_Glcd_Circle 
- SPI_Glcd_Set_Font 
- SPI_Glcd_Write_Char 
- SPI_Glcd_Write_Text 
- SPI_Glcd_Image 
401
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6