print("Hello, Pi Pico!")
print("This is Experiment - 8 and Objective - 8")
print("Name: Ashwini Kumar Behera; Registration No.: 1941012390")
print('''Objective : 8 Implementation of a Randomly generated colourful
flowing light using RGB LED Strip module and Raspberry Pi.''')
import machine
from ws2812 import WS2812
import utime
import urandom
ws = WS2812(machine.Pin(0),8)
def flowing_light():
for i in range(7,0,-1):
ws[i]=ws[i-1]
ws[0]=int(urandom.uniform(0,0xFFFFFF))
ws.write()
utime.sleep_ms(80)
while True:
flowing_light()
print(ws[0])