def num_pixels(self): """ Return the number of pixels in the display Parameters ---------- self : Function of class Adafruit_Neopixel Returns ------- int The number of pixels in in the neopixel ring """ return ws.ws2811_channel_t_count_get(self._channel)
def numPixels(self): """Return the number of pixels in the display.""" return ws.ws2811_channel_t_count_get(self._channel)
def __len__(self): return ws.ws2811_channel_t_count_get(self._channel)
def pixel_count(self): """Return the number of pixels in the display.""" with _ws821x_lock: return ws.ws2811_channel_t_count_get(self._channel)