60 void LCD_send_command (
unsigned char D3,
unsigned char D2,
unsigned char D1,
unsigned char D0) {
83 void LCD_shift (
unsigned char shift,
unsigned char number_of_shift) {
87 for (i=0; i < number_of_shift; i++) {
101 for (i=0; i < number_of_shift; i++) {
146 unsigned char D3,D2,D1,D0;
151 D3 = (value & 0b10000000) >> 7;
152 D2 = (value & 0b01000000) >> 6;
153 D1 = (value & 0b00100000) >> 5;
154 D0 = (value & 0b00010000) >> 4;
159 D3 = (value & 0b00001000) >> 3;
160 D2 = (value & 0b00000100) >> 2;
161 D1 = (value & 0b00000010) >> 1;
162 D0 = (value & 0b00000001);
209 void LCD_write_integer (
signed int value,
unsigned char number_of_digits,
unsigned char zero_cleaning){
212 unsigned char convertedInt [6] = {0,0,0,0,0,0};
219 itoa (value, (
unsigned char*) convertedInt);
223 itoa ((
unsigned char*) convertedInt, value,10);
227 if (number_of_digits >0 ) {
229 convertedInt[number_of_digits] =
'\0';
233 while (!(convertedInt[number_of_digits-1] <=
'9' && convertedInt[number_of_digits-1] >=
'0')){
235 for (index = number_of_digits-1; index > 0; index--){
236 convertedInt[index] = convertedInt[index-1];
239 convertedInt[index-1] =
' ';
241 convertedInt[index-1] =
'0';
265 void LCD_cursor (
unsigned char active,
unsigned char blinking) {