User manual

Table Of Contents
498
mikoC PRO for PIC32
MikroElektronika
Delay_ms(1000);
SPI_Glcd_Line(0, 0, 127, 63, 1); // Draw line
Delay2s();
for(counter = 5; counter < 60; counter+=5 ) {// Draw horizontal and vertical lines
Delay_ms(250);
SPI_Glcd_V_Line(2, 54, counter, 1);
SPI_Glcd_H_Line(2, 120, counter, 1);
}
Delay2s();
SPI_Glcd_Fill(0x00); // Clear Glcd
SPI_Glcd_Set_Font(Font_Glcd_Character8x7, 8, 7, 32); // Choose font, see __Lib_
GLCDFonts.c in Uses folder
SPI_Glcd_Write_Text(“mikroE”, 5, 7, 2); // Write string
for (counter = 1; counter <= 10; counter++) // Draw circles
SPI_Glcd_Circle(63,32, 3*counter, 1);
Delay2s();
SPI_Glcd_Circle_Fill(63,32, 30, 1); // Draw circles
Delay2S();
SPI_Glcd_Box(12,20, 70,63, 2); // Draw box
Delay2s();
SPI_Glcd_Fill(0xFF); // Fill Glcd
SPI_Glcd_Set_Font(Font_Glcd_Character8x7, 8, 7, 32); // Change font
someText = “8x7 Font”;
SPI_Glcd_Write_Text(someText, 5, 0, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(Font_Glcd_System3x5, 3, 5, 32); // Change font
someText = “3X5 CAPITALS ONLY”;
SPI_Glcd_Write_Text(someText, 60, 2, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(Font_Glcd_System5x7, 5, 7, 32); // Change font
someText = “5x7 Font”;
SPI_Glcd_Write_Text(someText, 5, 4, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(Font_Glcd_5x7, 5, 7, 32); // Change font
someText = “5x7 Font (v2)”;
SPI_Glcd_Write_Text(someText, 5, 6, 2); // Write string
Delay2s();
}
}