Mathéo Guichard / Mbed 2 deprecated I2CTextLCD

Dependencies:   mbed

Revision:
1:5c7a96a6003b
Parent:
0:6beb6f498640
diff -r 6beb6f498640 -r 5c7a96a6003b TextLCD.cpp
--- a/TextLCD.cpp	Mon Aug 09 14:17:02 2010 +0000
+++ b/TextLCD.cpp	Wed Jun 05 11:09:14 2019 +0000
@@ -120,6 +120,8 @@
 }
 
 void TextLCD::writeNibble(int data, bool rs) {
+    data<<=4;
+    data|=8;
     if (rs) {
         data = data | RS_ON; // set rs bit
     }