61 void LCD_send_command (
unsigned char D3,
unsigned char D2,
unsigned char D1,
unsigned char D0) {
84 void LCD_shift (
unsigned char shift,
unsigned char number_of_shift) {
88 for (i=0; i < number_of_shift; i++) {
102 for (i=0; i < number_of_shift; i++) {
147 unsigned char D3,D2,D1,D0;
152 D3 = (value & 0b10000000) >> 7;
153 D2 = (value & 0b01000000) >> 6;
154 D1 = (value & 0b00100000) >> 5;
155 D0 = (value & 0b00010000) >> 4;
160 D3 = (value & 0b00001000) >> 3;
161 D2 = (value & 0b00000100) >> 2;
162 D1 = (value & 0b00000010) >> 1;
163 D0 = (value & 0b00000001);
210 void LCD_write_integer (
signed int value,
unsigned char number_of_digits,
unsigned char zero_cleaning){
213 unsigned char convertedInt [6] = {0,0,0,0,0,0};
220 itoa (value, (
unsigned char*) convertedInt);
224 itoa ((
unsigned char*) convertedInt, value,10);
228 if (number_of_digits >0 ) {
230 convertedInt[number_of_digits] =
'\0';
234 while (!(convertedInt[number_of_digits-1] <=
'9' && convertedInt[number_of_digits-1] >=
'0')){
236 for (index = number_of_digits-1; index > 0; index--){
237 convertedInt[index] = convertedInt[index-1];
240 convertedInt[index-1] =
' ';
242 convertedInt[index-1] =
'0';
266 void LCD_cursor (
unsigned char active,
unsigned char blinking) {