Homework 1.1 turn off decimal on display
Fork of SLCD by
Diff: SLCD.cpp
- Revision:
- 10:ef2b3b7f1b01
- Parent:
- 7:0e084b33d730
- Child:
- 11:4afb2276def1
diff -r dae947a658f0 -r ef2b3b7f1b01 SLCD.cpp --- a/SLCD.cpp Sun Mar 23 19:10:10 2014 +0000 +++ b/SLCD.cpp Sun Mar 23 19:55:14 2014 +0000 @@ -195,7 +195,7 @@ CharPosition++; } -void SLCD::Home (void) +void SLCD::Home() { CharPosition = 0; } @@ -267,11 +267,11 @@ DP(2, mode==1); } -void SLCD::Colon (int mode) +void SLCD::Colon (bool on) { uint8_t *lbpLCDWF; lbpLCDWF = (uint8_t *)&LCD->WF8B[0]; - if (mode==1) { + if (on) { lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]|=1; } else { lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]&=~1;