docs: def display(self, image):
          """
          Takes a 1-bit :py:mod:`PIL.Image` and dumps it to the ST7567
          LCD display
          """
          assert(image.mode == self.mode)
          assert(image.size == self.size)
  
          image = self.preprocess(image)
  
          set_page_address = 0xB0
  
          image_data = image.getdata()
          pixels_per_page = self.width * 8
          buf = bytearray(self.width)
  
          for y in range(0, int(self._pages * pixels_per_page), pixels_per_page):
              self.command(set_page_address, 0x04, 0x10)
              set_page_address += 1
              offsets = [y + self.width * i for i in range(8)]
  
              for x in range(self.width):
                  buf[x] = \
                      (image_data[x + offsets[0]] and 0x01) | \
                      (image_data[x + offsets[1]] and 0x02) | \
                      (image_data[x + offsets[2]] and 0x04) | \
                      (image_data[x + offsets[3]] and 0x08) | \
                      (image_data[x + offsets[4]] and 0x10) | \
                      (image_data[x + offsets[5]] and 0x20) | \
                      (image_data[x + offsets[6]] and 0x40) | \
                      (image_data[x + offsets[7]] and 0x80)
  
              self.data(list(buf))