Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F1007037
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, Nov 8, 8:48 AM (16 h, 25 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/d4/19b64289c1dddf14cf9a0cac0d6d
Attached To
rAERO GIGABYTE Aero Fusion controller lib
Event Timeline
Log In to Comment