Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F834777
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
Mon, Aug 17, 1:13 AM (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d6/29/d8ea1c9216dba0fac42b782add4e
Attached To
rAERO GIGABYTE Aero Fusion controller lib
Event Timeline
Log In to Comment