MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / lcd_strobe

Method lcd_strobe

mpython/lib/lcd2004.py:26–30  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

24 sleep_ms(300)
25
26 def lcd_strobe(self, data):
27 self.i2c.writeto(self.address, bytes([data | Enable | self.BKLIGHT]))
28 sleep_ms(1)
29 self.i2c.writeto(self.address, bytes([(data & ~Enable) | self.BKLIGHT]))
30 sleep_ms(1)
31
32 def lcd_write_four_bits(self, data):
33 self.i2c.writeto(self.address, bytes([data | self.BKLIGHT]))

Callers 1

lcd_write_four_bitsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected