Esempio n. 1
0
    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)
Esempio n. 2
0
	def numPixels(self):
		"""Return the number of pixels in the display."""
		return ws.ws2811_channel_t_count_get(self._channel)
Esempio n. 3
0
 def __len__(self):
     return ws.ws2811_channel_t_count_get(self._channel)
Esempio n. 4
0
	def numPixels(self):
		"""Return the number of pixels in the display."""
		return ws.ws2811_channel_t_count_get(self._channel)
Esempio n. 5
0
 def pixel_count(self):
     """Return the number of pixels in the display."""
     with _ws821x_lock:
         return ws.ws2811_channel_t_count_get(self._channel)