from machine import Pin
from neopixel import NeoPixel
import time

# Definitions for the ATOM Matrix
LED_GPIO = const(27)
matrix_size_x = const(5)
matrix_size_y = const(5)
is_atom_matrix = True

np = NeoPixel(Pin(LED_GPIO), matrix_size_x * matrix_size_y)

while True:
    np.fill((175,50,0))
    np.write()
    time.sleep(0.5)
    np.fill((175,25,0))
    np.write()
    time.sleep(0.5)
    np.fill((175,0,5))
    np.write()
    time.sleep(0.5)
    np.fill((150,0,25))
    np.write()
    time.sleep(0.5)
    np.fill((100,0,75))
    np.write()
    time.sleep(0.5)
    np.fill((50,0,100))
    np.write()
    time.sleep(0.5)
    np.fill((50,0,150))
    np.write()
    time.sleep(0.5)
    np.fill((25,0,175))
    np.write()
    time.sleep(0.5)
    np.fill((0,25,175))
    np.write()
    time.sleep(0.5)
    np.fill((0,50,175))
    np.write()
    time.sleep(0.5)
    np.fill((0,75,175))
    np.write()
    time.sleep(0.5)
    np.fill((0,150,175))
    np.write()
    time.sleep(0.5)
    np.fill((0,175,175))
    np.write()
    time.sleep(0.5)
    np.fill((5,150,100))
    np.write()
    time.sleep(0.5)
    np.fill((50,75,0))
    np.write()
    time.sleep(0.5)
    np.fill((100,50,0))
    np.write()
    time.sleep(0.5)
    np.fill((150,50,0))
    np.write()
    time.sleep(0.5)
