52 unsigned char busy_flag = 1;
69 unsigned char controller_status;
84 return (controller_status);
229 unsigned char page = 0;
230 unsigned char address = 0;
274 unsigned char data_out;
302 void GLCD_plot_xy (
unsigned char x_pos,
unsigned char y_pos,
unsigned char filling_color){
304 unsigned char data_byte;
305 unsigned char data_mask;
334 data_mask = 0x01 << (y_pos & 0x07);
337 data_byte = data_byte | data_mask;
339 data_byte = data_byte & ~data_mask;
354 void GLCD_draw_vertical_line (
unsigned char x_origin,
unsigned char y_origin,
unsigned char length,
unsigned char filling_color){
358 for (i = 0 ; i<length; i++) {
371 for (i = 0 ; i<length; i++) {
381 void GLCD_draw_window (
unsigned char x_origin,
unsigned char y_origin,
unsigned char width,
unsigned char height,
unsigned char filling_color){
399 void GLCD_draw_box (
unsigned char x_origin,
unsigned char y_origin,
unsigned char width,
unsigned char height,
unsigned char filling_color){
403 for (i=0; i < width; i++)
411 void GLCD_write_char (
unsigned char x_pos,
unsigned char y_pos,
unsigned char character){
416 unsigned char bit_value;
424 if (data & (0x80 >> x))
439 void GLCD_write_string (
unsigned char x_pos,
unsigned char y_pos,
unsigned char * character_array){
443 while (character_array[i]) {
456 void GLCD_write_message (
unsigned char x_pos,
unsigned char y_pos,
const rom
unsigned char * character) {
460 void GLCD_write_message (
unsigned char x_pos,
unsigned char y_pos,
const unsigned char * character) {
465 while (character[i]) {
485 unsigned char page = 0;
486 unsigned char address = 0;
528 void GLCD_write_integer (
unsigned char x_pos,
unsigned char y_pos,
int value,
char number_of_digits){
531 unsigned char convertedInt [6] = {0,0,0,0,0,0};
538 itoa (value, (
char*) convertedInt);
542 itoa ((
char*) convertedInt, value,10);
545 if (number_of_digits >0 ) {
547 convertedInt[number_of_digits] =
'\0';
550 while (!(convertedInt[number_of_digits-1] <=
'9' && convertedInt[number_of_digits-1] >=
'0')) {
551 for (index = number_of_digits-1; index > 0; index--){
552 convertedInt[index] = convertedInt[index-1];
553 convertedInt[index-1] =
' ';