Exemple #1
0
 def _c(self):
     for i in range(self.data.sz[0] * self.data.sz[1]):
         ws.ws2811_led_set(self.data.ch, i, 0)
     ws.ws2811_render(self._leds)
     ws.delete_ws2811_t(self._leds)
Exemple #2
0
	def _cleanup(self):
		# Clean up memory used by the library when not needed anymore.
		if self._leds is not None:
			ws.delete_ws2811_t(self._leds)
			self._leds = None
			self._channel = None