def update(self, strip: LedStrip): strip.clear() for einBeschleuniger in self.meineBeschleuniger: einBeschleuniger.malen(strip) strip.transmit()
def update(self, strip: LedStrip): strip.clear() newStuff = [] for rocket in self.lauchners: results = rocket.move(PERIOD) # tickrate is perfect newStuff += results self.lauchners = newStuff for rocket in self.lauchners: rocket.paint(strip) strip.transmit()