User manual
mikroC PRO for dsPIC
MikroElektronika
555
Delay2s();
#ifdef COMPLETE_EXAMPLE
SPI_Glcd_Fill(0x00); // Clear Glcd
SPI_Glcd_Set_Font(Character8x7, 8, 8, 32); // Choose font, see __Lib_GLCDFonts.c
in Uses folder
SPI_Glcd_Write_Text("mikroE", 5, 7, 2); // Write string
#endif
for (counter = 1; counter <= 10; counter++) // Draw circles
SPI_Glcd_Circle(63,32, 3*counter, 1);
Delay2s();
#ifdef COMPLETE_EXAMPLE
SPI_Glcd_Box(12,20, 70,63, 2); // Draw box
Delay2s();
SPI_Glcd_Fill(0xFF); // Fill Glcd
SPI_Glcd_Set_Font(Character8x7, 8, 7, 32); // Change font
someText = "8x7 Font";
SPI_Glcd_Write_Text(someText, 5, 1, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(System3x5, 3, 5, 32); // Change font
someText = "3X5 CAPITALS ONLY";
SPI_Glcd_Write_Text(someText, 5, 3, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(font5x7, 5, 7, 32); // Change font
someText = "5x7 Font";
SPI_Glcd_Write_Text(someText, 5, 5, 2); // Write string
Delay2s();
SPI_Glcd_Set_Font(FontSystem5x7_v2, 5, 7, 32); // Change font
someText = "5x7 Font (v2)";
SPI_Glcd_Write_Text(someText, 5, 7, 2); // Write string
Delay2s();
#endif
}
}