KBrat-SSD645-HW-8_1_SLCD
Fork of SLCD by
Diff: SLCD.cpp
- Revision:
- 2:6a5095c98da1
- Parent:
- 1:1579bcd31410
--- 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; }