code: def display(self, image):
          
          assert(image.mode == self.mode)
          assert(image.size == self.size)
  
          ws = self._ws
          m = self._mapping
          for idx, (red, green, blue) in enumerate(image.getdata()):
              color = (red << 16) | (green << 8) | blue
              ws.ws2811_led_set(self._channel, m[idx], color)
  
          self._flush()
docs: Takes a 24-bit RGB :py:mod:`PIL.Image` and dumps it to the daisy-chained
          WS2812 neopixels.