Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F368932
test.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
744 B
Subscribers
None
test.py
View Options
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
)))
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Sun, Jul 6, 2:20 AM (20 h, 19 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
46/b9/591031afbb3c84e17c1cab459580
Attached To
rAERO GIGABYTE Aero Fusion controller lib
Event Timeline
Log In to Comment