示例#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)
示例#2
0
	def numPixels(self):
		"""Return the number of pixels in the display."""
		return ws.ws2811_channel_t_count_get(self._channel)
示例#3
0
文件: LEDs.py 项目: ZacharyACoon/zrgb
 def __len__(self):
     return ws.ws2811_channel_t_count_get(self._channel)
示例#4
0
	def numPixels(self):
		"""Return the number of pixels in the display."""
		return ws.ws2811_channel_t_count_get(self._channel)
示例#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)