def __init__(self, beVerbose, showFPS): # initializations self.beVerbose = beVerbose self.device = DeviceController(beVerbose, showFPS) self.webSocketHandler = [] self.colors = ColorController self.colors.setDeviceReference(self.device) self.currentAnimation = '' self.autoStatusCounter = 0 self.autoUpdateTreshold = 10 self.sentAutoUpdates = 0 # initialize animations self.fadeOutAnimation = FadeOutAnimation(self) self.monoColorAnimation = MonoColor(self.device) self.monoPixelAnimation = MonoPixel(self.device) self.colorChangeAnimation = ColorChange(self.device) self.randomGlowAnimation = RandomGlowAnimation(self.device) self.pulsingCircleAnimation = PulsingCircleAnimation(self.device) # set animation mode self.showFadeOut = False self.showMonoColor = False self.showMonoPixel = False self.showColorChange = False self.showRandomGlow = False self.showPulsingCircle = False # start the pulsing circle animation self.showAnimation({'name': 'colorChange'}) # instantiate as thread Thread.__init__(self)