Download mikroPascal for AVR Users Manual
Transcript
mikroPASCAL making it simple... mikroPASCAL - Pascal Compiler for Atmel AVR microcontrollers Spi_Glcd_Write_Data Prototype procedure Spi_Glcd_Write_Data(data : byte); Description Writes data to the current location in GLCD memory and moves to the next location. Requires GLCD needs to be initialized. See Spi_Glcd_Init. Example Spi_Glcd_Write_Data(data); Spi_Glcd_Fill Prototype procedure Spi_Glcd_Fill(pattern : byte); Description Fills the GLCD memory with byte pattern. To clear the GLCD screen, use Spi_Glcd_Fill(0); to fill the screen completely, use Spi_Glcd_Fill($FF). Requires GLCD needs to be initialized. See Spi_Glcd_Init. Example Spi_Glcd_Fill(0); // Clear screen Spi_Glcd_Dot Prototype procedure Spi_Glcd_Dot(x, y, color : byte); Description Draws a dot on the GLCD at coordinates (x, y). Parameter color determines the dot state: 0 clears dot, 1 puts a dot, and 2 inverts dot state. Requires GLCD needs to be initialized. See Spi_Glcd_Init. Example Spi_Glcd_Dot(0, 0, 2); // Invert the dot in the upper left corner page mikroElektronika: Development tools - Books - Compilers 255