def _write4bits(self, bits):
    if self.rw: bbio.digitalWrite(self.rw, bbio.LOW)
    for bit in range(4):
      bbio.digitalWrite(self.data_pins[bit], (bits>>bit) & 0x1)
    bbio.digitalWrite(self.enable, bbio.HIGH)
    bbio.digitalWrite(self.enable, bbio.LOW)
Writes out the lowest 4 bits of the given value.
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/LiquidCrystal/LiquidCrystal.py/LiquidCrystal._write4bits