<reponame>JonathanArrance/rackbrain
# This file has been written to your home directory for convenience. It is
# saved as "/home/pi/humidity-2018-01-14-20-36-00.py"

from sense_emu import SenseHat

sense = SenseHat()

green = (0, 255, 0)
white = (255, 255, 255)

while True:
    humidity = sense.humidity
    humidity_value = 64 * humidity / 100
    pixels = [green if i < humidity_value else white for i in range(64)]
    sense.set_pixels(pixels)

# This file has been written to your home directory for convenience. It is
# saved as "/home/pi/humidity-2018-01-14-20-36-00.py"

from sense_emu import SenseHat

sense = SenseHat()

green = (0, 255, 0)
white = (255, 255, 255)

while True:
    humidity = sense.humidity
    humidity_value = 64 * humidity / 100
    pixels = [green if i < humidity_value else white for i in range(64)]
    sense.set_pixels(pixels)
# This file has been written to your home directory for convenience. It is # saved as "/home/pi/humidity-2018-01-14-20-36-00.py"