from picozero import Pot # Pot is short for Potentiometer
from time import sleep
from picozero import LED
from picozero import LED, Button
from picozero import Button
from neopixel import Neopixel
import random
button_1 = Button(17)
button_2 = Button(22)
button_3 = Button(18)
ring = Neopixel(32, 0, 16, "GRB")
def function_1():
c=ring.colorHSV(16000, 255, 255)
ring.fill((255,0,0))
ring.show()
print('button 1')
def function_2():
sleep(.5)
h=5000
print('button 2')
run = 1
while run>0:
h=h+500
c=ring.colorHSV(h, 255, 255)
ring.fill(c)
ring.show()
print('in hue chage',h)
while True:
button_1.when_pressed = function_1
button_2.when_pressed = function_2
button_3.when_pressed = function_2