Esempio n. 1
0
    def update(self, strip: LedStrip):
        strip.clear()

        for einBeschleuniger in self.meineBeschleuniger:
            einBeschleuniger.malen(strip)

        strip.transmit()
Esempio n. 2
0
    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()