/ Halloween_Neon_Signs / Reaper.py
Reaper.py
1 # SPDX-FileCopyrightText: 2022 Noe Ruiz for Adafruit Industries 2 # SPDX-License-Identifier: MIT 3 # Grim Reaper and Moon Neon Sign 4 import board 5 import neopixel 6 from adafruit_led_animation.animation.chase import Chase 7 from adafruit_led_animation.animation.pulse import Pulse 8 from adafruit_led_animation.group import AnimationGroup 9 from adafruit_led_animation.sequence import AnimationSequence 10 from adafruit_led_animation import color 11 12 knife_leds = neopixel.NeoPixel(board.SDA, 48, brightness=0.8, 13 auto_write=False, pixel_order=neopixel.RGB) 14 repear_leds = neopixel.NeoPixel(board.SCL, 60, brightness=0.8, 15 auto_write=False, pixel_order=neopixel.RGB) 16 17 animations = AnimationSequence( 18 19 AnimationGroup( 20 Chase(knife_leds, speed=0.02, color=color.PURPLE, spacing=12, size=40), 21 Pulse(repear_leds, speed=0.01, color=color.GREEN, period=3), 22 sync=True, 23 ), 24 advance_interval=8.0, 25 auto_clear=True, 26 auto_reset=True, 27 ) 28 29 while True: 30 animations.animate()