Other Commands
set_fun_mode
Enable or disable fun mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enable
|
bool
|
Boolean or equivalent, enables (True) or disables (False) fun mode. |
False
|
Source code in src/pypixelcolor/commands/set_fun_mode.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
set_pixel
Defines the color of a specific pixel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
int
|
X coordinate of the pixel (0-...). |
required |
y
|
int
|
Y coordinate of the pixel (0-...). |
required |
color
|
str
|
Color in hexadecimal format (e.g., 'FF0000' for red). |
required |
Source code in src/pypixelcolor/commands/set_fun_mode.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
set_rhythm_mode
Set the rhythm mode of the device.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
style
|
int
|
The style of the rhythm mode (0-4). |
0
|
l1
|
int
|
Level 1 (0-15). |
0
|
l2
|
int
|
Level 2 (0-15). |
0
|
l3
|
int
|
Level 3 (0-15). |
0
|
l4
|
int
|
Level 4 (0-15). |
0
|
l5
|
int
|
Level 5 (0-15). |
0
|
l6
|
int
|
Level 6 (0-15). |
0
|
l7
|
int
|
Level 7 (0-15). |
0
|
l8
|
int
|
Level 8 (0-15). |
0
|
l9
|
int
|
Level 9 (0-15). |
0
|
l10
|
int
|
Level 10 (0-15). |
0
|
l11
|
int
|
Level 11 (0-15). |
0
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/pypixelcolor/commands/set_rhythm_mode.py
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
set_rhythm_mode_2
Set the rhythm mode of the device (alternative version).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
style
|
int
|
The style of the rhythm mode. Allowed values are 0 or 1. |
0
|
t
|
int
|
Animation time (0-7). |
0
|
Returns:
| Name | Type | Description |
|---|---|---|
bytes |
Byte sequence for the command payload used to set the rhythm mode. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/pypixelcolor/commands/set_rhythm_mode.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |