Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F907494
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, Sep 7, 4:55 AM (1 d, 20 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3b/53/e64c60a5b1192164139118366959
Attached To
rAERO GIGABYTE Aero Fusion controller lib
Event Timeline
Log In to Comment