void LCD_teplota(int hodnota, int r) { int temp1; int temp2; int temp3; LCD_Gotoxy(1,r); LCD_WriteString("Pokus"); if (hodnota<0) { LCD_Gotoxy(14,r); LCD_PutChar('-'); //vypsani znamenka a zmena hodnoty na kladnou temp3=hodnota*(-1); } else temp3=hodnota; if (temp3>=100){LCD_Gotoxy(14,r); LCD_WriteString("***");} if (temp3<100){ LCD_Gotoxy(15,r); temp1=temp3/10; if(temp1<1) LCD_PutChar('0'); else if(temp1<2) LCD_PutChar('1'); else if(temp1<3) LCD_PutChar('2'); else if(temp1<4) LCD_PutChar('3'); else if(temp1<5) LCD_PutChar('4'); else if(temp1<6) LCD_PutChar('5'); else if(temp1<7) LCD_PutChar('6'); else if(temp1<8) LCD_PutChar('7'); else if(temp1<9) LCD_PutChar('8'); else if(temp1<10)LCD_PutChar('9'); temp2=temp3%10; if (temp2<10){ LCD_Gotoxy(16,r); if(temp2<1) LCD_PutChar('0'); else if(temp2<2) LCD_PutChar('1'); else if(temp2<3) LCD_PutChar('2'); else if(temp2<4) LCD_PutChar('3'); else if(temp2<5) LCD_PutChar('4'); else if(temp2<6) LCD_PutChar('5'); else if(temp2<7) LCD_PutChar('6'); else if(temp2<8) LCD_PutChar('7'); else if(temp2<9) LCD_PutChar('8'); else if(temp2<10)LCD_PutChar('9'); } } }