52 unsigned char busy_flag = 1;
69 unsigned char controller_status;
84 return (controller_status);
252 unsigned char page = 0;
253 unsigned char address = 0;
297 unsigned char data_out;
331 void GLCD_plot_xy (
unsigned char x_pos,
unsigned char y_pos,
unsigned char filling_color){
333 unsigned char data_byte;
334 unsigned char data_mask;
363 data_mask = 0x01 << (y_pos & 0x07);
366 data_byte = data_byte | data_mask;
368 data_byte = data_byte & ~data_mask;
383 void GLCD_draw_vertical_line (
unsigned char x_origin,
unsigned char y_origin,
unsigned char length,
unsigned char filling_color){
387 for (i = 0 ; i<length; i++) {
400 for (i = 0 ; i<length; i++) {
410 void GLCD_draw_window (
unsigned char x_origin,
unsigned char y_origin,
unsigned char width,
unsigned char height,
unsigned char filling_color){
428 void GLCD_draw_box (
unsigned char x_origin,
unsigned char y_origin,
unsigned char width,
unsigned char height,
unsigned char filling_color){
432 for (i=0; i < width; i++)
440 void GLCD_write_char (
unsigned char x_pos,
unsigned char y_pos,
unsigned char character){
445 unsigned char bit_value;
453 if (data & (0x80 >> x))
468 void GLCD_write_string (
unsigned char x_pos,
unsigned char y_pos,
unsigned char * character_array){
472 while (character_array[i]) {
485 void GLCD_write_message (
unsigned char x_pos,
unsigned char y_pos,
const rom
unsigned char * character) {
489 void GLCD_write_message (
unsigned char x_pos,
unsigned char y_pos,
const unsigned char * character) {
494 while (character[i]) {
514 unsigned char page = 0;
515 unsigned char address = 0;
557 void GLCD_write_integer (
unsigned char x_pos,
unsigned char y_pos,
int value,
char number_of_digits){
560 unsigned char convertedInt [6] = {0,0,0,0,0,0};
567 itoa (value, (
char*) convertedInt);
571 itoa ((
char*) convertedInt, value,10);
574 if (number_of_digits >0 ) {
576 convertedInt[number_of_digits] =
'\0';
579 while (!(convertedInt[number_of_digits-1] <=
'9' && convertedInt[number_of_digits-1] >=
'0')) {
580 for (index = number_of_digits-1; index > 0; index--){
581 convertedInt[index] = convertedInt[index-1];
582 convertedInt[index-1] =
' ';