Datasheet
Library Example
The following drawing demo tests advanced routines of the T6963C GLCD library.
Hardware configurations in this example are made for the T6963C 240x128 display,
EasyAVR5 board and ATMEGA16.
#include "__T6963C.h"
// T6963C module connections
char T6963C_ctrlPort at PORTC;
char T6963C_dataPort at PORTD;
char T6963C_ctrlPort_Direction at DDRC;
char T6963C_dataPort_Direction at DDRD;
sbit T6963C_ctrlwr at PORTC.B2;
sbit T6963C_ctrlrd at PORTC.B1;
sbit T6963C_ctrlcd at PORTC.B0;
sbit T6963C_ctrlrst at PORTC.B4;
sbit T6963C_ctrlwr_Direction at DDRC.B2;
sbit T6963C_ctrlrd_Direction at DDRC.B1;
sbit T6963C_ctrlcd_Direction at DDRC.B0;
sbit T6963C_ctrlrst_Direction at DDRC.B4;
// Signals not used by library, they are set in main function
sbit T6963C_ctrlce at PORTC.B3;
sbit T6963C_ctrlfs at PORTC.B6;
sbit T6963C_ctrlmd at PORTC.B5;
sbit T6963C_ctrlce_Direction at DDRC.B3;
sbit T6963C_ctrlfs_Direction at DDRC.B6;
sbit T6963C_ctrlmd_Direction at DDRC.B5;
// End T6963C module connections
/*
* bitmap pictures stored in ROM
*/
const code char mikroE_240x128_bmp[];
const code char einstein[];
void main() {
char txt1[] = " EINSTEIN WOULD HAVE LIKED mE";
char txt[] = " GLCD LIBRARY DEMO, WELCOME !";
unsigned char panel; // Current panel
unsigned int i; // General purpose register
unsigned char curs; // Cursor visibility
unsigned int cposx, cposy; // Cursor x-y position
525
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6