Skip to content

Attributes

Thibaut Breton edited this page Dec 8, 2023 · 2 revisions

RAIMBOW_COLOR

This integer is a number between 0 and 255 which is incremented or decremented with the RAIMBOW_INCREASE variable and updated in the updateRaimbowColor function.

Type Default
int 0

RAIMBOW_INCREASE

This integer is used in the updateRaimbowColor function to update each RAIMBOW_COLOR step (1 in one direction and -1 in the other).

Type Default
int 1

BRIGHTNESS

This float is a number between 0 and 0,1 which is incremented or decremented with the BRIGHTNESS_INCREASE variable and updated in the updateBrightness function.

Type Default
float 0,1

BRIGHTNESS_INCREASE

This integer is used in the updateBrightness function to update BRIGHTNESS (-0,0005 in one direction and 0,0005 in the other).

Type Default
float -0,0005

COLOR_EFFECT_NUMBER

Generate with the list of effects loaded on the cube, this integer corresponds to the number of light effects loaded on the cube.

Type Default
int

COLOR_EFFECT_ACTUAL

Corresponds to the current ID of the lighting effect played on the cube and incremented when the button set to COLOR_SWITCH is pressed.

Type Default
int 0

COLOR_SWITCH

This is the button which, when pressed, modifies the lighting effect played on the cube.

Type Default
int TP[0][0]

SIZE

It corresponds to the size of the cube and is one of the parameters of the constructor.

Type Default
int

P

It corresponds to neopixel pixels and is one of the parameters of the constructor.

Type Default
neopixel.NeoPixel

K

It corresponds to the keyMatrix of keypad and is one of the parameters of the constructor.

Type Default
keypad.KeyMatrix

TF

It corresponds to the top face matrix and is one of the parameters of the constructor.

Type Default
list[list[int]]

NF

It corresponds to the north face matrix and is one of the parameters of the constructor.

Type Default
list[list[int]]

SF

It corresponds to the south face matrix and is one of the parameters of the constructor.

Type Default
list[list[int]]

EF

It corresponds to the east face matrix and is one of the parameters of the constructor.

Type Default
list[list[int]]

WF

It corresponds to the east face matrix and is one of the parameters of the constructor.

Type Default
list[list[int]]

_CTV

It corresponds to the matrix of the cube's top view and is generated using the createCubeWestView function.

Type Default
list[list[int]]

_CNV

It corresponds to the matrix of the cube's north view and is generated using the createCubeNorthView function.

Type Default
list[list[int]]

_CSV

It corresponds to the matrix of the cube's south view and is generated using the createCubeSouthView function.

Type Default
list[list[int]]

_CEV

It corresponds to the matrix of the cube's east view and is generated using the createCubeEastView function.

Type Default
list[list[int]]

_CWV

It corresponds to the matrix of the cube's west view and is generated using the createCubeWestView function.

Type Default
list[list[int]]

_RP

It corresponds to the rainbow sequence matrix and is generated using the createRaimbow function.

Type Default
list[list[int]]

Clone this wiki locally