Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SLCD by
Diff: SLCD.cpp
- Revision:
- 10:ef2b3b7f1b01
- Parent:
- 7:0e084b33d730
- Child:
- 12:2470cab680b7
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;