We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe2adc commit 8f4f12dCopy full SHA for 8f4f12d
Adafruit_CharLCDPlate/Adafruit_CharLCDPlate.py
@@ -211,6 +211,12 @@ def noAutoscroll(self):
211
self.displaymode &= ~self.LCD_ENTRYSHIFTINCREMENT
212
self.write4bits(self.LCD_ENTRYMODESET | self.displaymode)
213
214
+ def createChar(self, location, bitmap):
215
+ self.write4bits(self.LCD_SETCGRAMADDR | ((location & 7) << 3))
216
+ for i in range(8):
217
+ self.write4bits(bitmap[i], True)
218
+ self.write4bits(self.LCD_SETDDRAMADDR)
219
+
220
def write4bits(self, bits, char_mode=False):
221
""" Send command to LCD """
222
#self.delayMicroseconds(1000) # 1000 microsecond sleep
0 commit comments