Mikroelektronika MIKROE-350 Hoja De Datos

Descargar
Página de 526
else
' Pressed key is same as previous
Inc(cnt)
end if
Lcd_Chr(1, 10, kp)      
' Print key ASCII value on Lcd
if (cnt = 255) then
' If counter varialble overflow
cnt = 0
Lcd_Out(2, 10, "     ")
end if
WordToStr(cnt, txt)     
' Transform counter value to string
Lcd_Out(2, 10, txt)         ' Display counter value on Lcd
wend
end.
238
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6