كود:
if(x>=10){CustomChar3(2,2);} if(x<=10) {lcd_out(2,2," ");}
if(x>=15){CustomChar3(2,3);} if(x<=15){lcd_out(2,3," ");}
if(x>=20){CustomChar3(2,4);} if(x<=20){lcd_out(2,4," ");}
if(x>=25){CustomChar3(2,5);} if(x<=25){lcd_out(2,5," ");}
if(x>=30){CustomChar3(2,6);} if(x<=30) {lcd_out(2,6," ");}
if(x>=35){CustomChar3(2,7);} if(x<=35){lcd_out(2,7," ");}
if(x>=40){CustomChar3(2,8);} if(x<=40){lcd_out(2,8," ");}
if(x>=45){CustomChar3(2,9);} if(x<=45){lcd_out(2,9," ");}
if(x>=50){CustomChar3(2,10);} if(x<=50) {lcd_out(2,10," ");}
if(x>=55){CustomChar3(2,11);} if(x<=55){lcd_out(2,11," ");}
if(x>=60){CustomChar3(2,12);} if(x<=60){lcd_out(2,12," ");}
if(x>=65){CustomChar3(2,13);} if(x<=65){lcd_out(2,13," ");}
if(x>=70){CustomChar3(2,14);} if(x<=70){lcd_out(2,14," ");}
if(x>=75){CustomChar3(2,15);} if(x<=75){lcd_out(2,15," ");}
if(x>=10){CustomChar3(2,2);} if(x<=10) {lcd_out(2,2," ");}
if(x>=15){CustomChar3(2,3);} if(x<=13){lcd_out(2,3," ");}
if(x>=20){CustomChar3(2,4);} if(x<=20){lcd_out(2,4," ");}
if(x>=25){CustomChar3(2,5);} if(x<=25){lcd_out(2,5," ");}
if(x>=30){CustomChar3(2,6);} if(x<=30) {lcd_out(2,6," ");}
if(x>=35){CustomChar3(2,7);} if(x<=35){lcd_out(2,7," ");}
if(x>=40){CustomChar3(2,8);} if(x<=40){lcd_out(2,8," ");}
if(x>=45){CustomChar3(2,9);} if(x<=45){lcd_out(2,9," ");}
if(x>=50){CustomChar3(2,10);} if(x<=50) {lcd_out(2,10," ");}
if(x>=55){CustomChar3(2,11);} if(x<=55){lcd_out(2,11," ");}
if(x>=60){CustomChar3(2,12);} if(x<=60){lcd_out(2,12," ");}
if(x>=65){CustomChar3(2,13);} if(x<=65){lcd_out(2,13," ");}
if(x>=70){CustomChar3(2,14);} if(x<=70){lcd_out(2,14," ");}
if(x>=75){CustomChar3(2,15);} if(x<=75){lcd_out(2,15," ");}
//////////////////////////////////////////////////////////////////////////////////////////
ولكن مانفع
اريد اذا زادت قيمة X
زاد معها CustomChar3
والعكس صحيح
اريد ان اكمل المشروع بالكود السابق وضعه ما استطعت فكتبت نصفه فقط في الكود