kl43z compatible

Dependents:   Lab2_kl43z

Revision:
1:61a420af8109
Parent:
0:ca792cac7591
diff -r ca792cac7591 -r 61a420af8109 SLCD.cpp
--- a/SLCD.cpp	Fri Sep 22 00:48:15 2017 +0000
+++ b/SLCD.cpp	Tue Oct 24 18:43:06 2017 -0700
@@ -193,7 +193,12 @@
        lbContrast &= 0x0F;              //Forced to the only values accepted 
        LCD->GCR |= LCD_GCR_RVTRIM(lbContrast);
 }
- 
+
+void SLCD::clear()
+{
+    All_Segments(0);
+}
+
 void SLCD::All_Segments (int mode)
 {
  uint8_t lbTotalBytes = _CHARNUM * _LCDTYPE;