code: def display(self, image):
          
          assert(image.mode == self.mode)
          assert(image.size == self.size)
          self._last_image = image.copy()
  
          # Send zeros to reset, then pixel values then zeros at end
          sz = image.width * image.height * 4
          buf = bytearray(sz * 3)
  
          m = self._mapping
          for idx, (r, g, b, a) in enumerate(image.getdata()):
              offset = sz + m[idx] * 4
              brightness = (a >> 4) if a != 0xFF else self._brightness
              buf[offset] = (0xE0 | brightness)
              buf[offset + 1] = b
              buf[offset + 2] = g
              buf[offset + 3] = r
  
          self._serial_interface.data(list(buf))
docs: Takes a 32-bit RGBA :py:mod:`PIL.Image` and dumps it to the daisy-chained
          APA102 neopixels. If a pixel is not fully opaque, the alpha channel
          value is used to set the brightness of the respective RGB LED.