from fusion.device import get_device
from fusion.datatypes import *

dev = get_device()
print(dev.get_version_string())


#set simple effect
# print(dev.set_custom_light_effect(1, mat))
# print(dev.set_simple_light_effect(FusionLightData(FusionLightEffect.Custom1, 1, 255//2, FusionLightColor.Random, 4)))

#get and set to verify if get is correctly implemented
# load = PictureMatrix.from_bytes(dev.get_custom_light_effect(1))
# print(load)
# dev.set_custom_light_effect(1, load)

#manually set color
# mat = PictureMatrix([RGB(255, 0, 0) for i in range(105)])
# dev.set_custom_light_effect(1, mat)

#test reset
print(dev.reset())
print(dev.set_simple_light_effect(FusionLightData(FusionLightEffect.Static, 1, 255, FusionLightColor.White, 4)))