MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _write_byte

Method _write_byte

resources/waveshare_epd/lcd1602.py:204–210  ·  view source on GitHub ↗

Write a single byte to the PCF8574 expander.

(self, data: int)

Source from the content-addressed store, hash-verified

202 return False
203
204 def _write_byte(self, data: int):
205 """Write a single byte to the PCF8574 expander."""
206 try:
207 self._bus.write_byte(self._addr, data)
208 except Exception as exc:
209 logger.error("LCD1602: I2C write error at 0x%02X: %s", self._addr, exc)
210 raise
211
212 def _pulse_enable(self, data: int):
213 """Pulse the EN pin high then low to latch a nibble."""

Callers 3

backlightMethod · 0.95
_pulse_enableMethod · 0.95
_send_nibbleMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected