# Rainbow Cycle - Classic WLED effect # Smooth rainbow colors cycling across the strip #strip length 60 palette rainbow_palette = [0xFF0000, 0xFF8000, 0xFFFF00, 0x00FF00, 0x0000FF, 0x8000FF, 0xFF00FF] # rainbow colors # Create smooth rainbow cycle animation color rainbow_cycle = color_cycle( colors=rainbow_palette cycle_period=5s # cycle period ) animation rainbow_animation = solid(color=rainbow_cycle) # Start the animation run rainbow_animation