from machine import Pin,PWM
from utime import sleep_ms
from neopixel import NeoPixel
np=NeoPixel(Pin(22),16)
def tone(buzzer_pin, freq, time):
buzzer = PWM(Pin(14), freq=freq, duty=512)
sleep_ms(time)
buzzer.deinit()
for i in range(16):
tone(12, 700, 400)
np[i]=255,0,0
tone(12, 400, 200)
np.write()
sleep_ms(100)
np[i]=0,255,0
tone(12, 200, 600)
np.write()
sleep_ms(200)
np[i]=0,0,255
tone(12, 770, 300)
np.write()
sleep_ms(100)