Applied 1602 Tiny LCD Library for reduce program Memory

This commit is contained in:
phdlee
2018-04-05 22:57:07 +09:00
parent 5f906a4497
commit d4ed0589e5
3 changed files with 247 additions and 104 deletions

View File

@@ -6,6 +6,13 @@
* quickly cleared up.
*/
char byteToChar(byte srcByte){
if (srcByte < 10)
return 0x30 + srcByte;
else
return 'A' + srcByte - 10;
}
//returns true if the button is pressed
int btnDown(void){
if (digitalRead(FBUTTON) == HIGH)