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.
Dependents: FRDM-KL46Z LCD rtc Demo KL46Z EE202A_HW1_MH SignalGenerator ... more
Revision 2:6a5095c98da1, committed 2014-01-26
- Comitter:
- Sissors
- Date:
- Sun Jan 26 21:09:41 2014 +0000
- Parent:
- 1:1579bcd31410
- Commit message:
- Fixed colon/dot (probably)
;
; (okay maybe)
;
; (possibly)
Changed in this revision
| SLCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SLCD.cpp Mon Jan 20 21:08:32 2014 +0000
+++ b/SLCD.cpp Sun Jan 26 21:09:41 2014 +0000
@@ -251,49 +251,49 @@
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[1]]=1;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[1]]|=1;
}
void SLCD::DP1_OFF (void)
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[1]]=14;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[1]]&=~1;
}
void SLCD::DP2_ON (void)
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[3]]=1;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[3]]|=1;
}
void SLCD::DP2_OFF (void)
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[3]]=14;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[3]]&=~1;
}
void SLCD::DP3_ON (void)
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[5]]=1;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[5]]|=1;
}
void SLCD::DP3_OFF (void)
{
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[5]]=14;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[5]]&=~1;
}
void SLCD::COLON_ON (void)
{
uint8_t *lbpLCDWF;
- lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]=1;
+ lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]|=1;
}
void SLCD::COLON_OFF (void)
@@ -301,6 +301,6 @@
uint8_t *lbpLCDWF;
lbpLCDWF = (uint8_t *)&LCD->WF8B[0];
- lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]=14;
+ lbpLCDWF[(uint8_t)WF_ORDERING_TABLE[7]]&=~1;
}
Lumex LCD-S401