constants
¶
All the constants of this library.
Modules:
| Name | Description |
|---|---|
beeper |
Beeper constants. |
button |
Button constants. |
display |
Display constants. |
environment |
Environment constants. |
general |
Global constants. |
rgb_strip |
RGB Strip constants. |
Classes:
| Name | Description |
|---|---|
RgbColor |
RGB Color. |
Attributes:
| Name | Type | Description |
|---|---|---|
BLACK |
int
|
Display color Black. |
BMP280_ADDR |
int
|
I2C addresses for the sensors. |
BRIGHT |
int
|
Bright intensity of a color. |
DIM |
int
|
Dim intensity of a color. |
DISPLAY_HEIGHT |
int
|
Height of the display in pixel. |
DISPLAY_WIDTH |
int
|
Width of the display in pixel. |
DUTY50 |
int
|
50% duty cycle |
LED_COUNT |
int
|
The amount of leds in the strip on the AALeC. |
LINE_HEIGHT |
int
|
Height of a text line on the display in pixel. |
MAX_LINE_COUNT |
int
|
Number of text lines on the display. |
MEDIUM |
int
|
Medium intensity of a color. |
PIN_ADC |
int
|
Pin number of the adc pin (not physically the same pin as the button!) |
PIN_BEEPER |
int
|
Pin number of the beeper. |
PIN_BUTTON |
int
|
Pin number of the button in the rotary encoder. |
PIN_ENCODER_TRACK_1 |
int
|
Pin number of the first track of the encoder. |
PIN_ENCODER_TRACK_2 |
int
|
Pin number of the second track of the encoder. |
PIN_RGB_STRIP |
int
|
Pin number of the rgb strip. |
PIN_RX |
int
|
Pin number of the RX port. |
PIN_SCL |
int
|
Pin number of the scl port for i2c. |
PIN_SDA |
int
|
Pin number of the sda port for i2c. |
PIN_TX |
int
|
Pin number of the TX port. |
PRESSED |
int
|
Value of a pressed button. |
RELEASED |
int
|
Value of a released button. |
SAMPLE_PERIOD |
int
|
Sample period for debouncing the button in ms. |
WHITE |
int
|
Display color White. |
c_blue |
RgbColor
|
Blue color (medium brightness) |
c_cyan |
RgbColor
|
Cyan color (medium brightness) |
c_green |
RgbColor
|
Green color (medium brightness) |
c_off |
RgbColor
|
Led Off |
c_purple |
RgbColor
|
Purple color (medium brightness) |
c_red |
RgbColor
|
Red color (medium brightness) |
c_white |
RgbColor
|
White color (medium brightness) |
c_yellow |
RgbColor
|
Yellow color (medium brightness) |
t_a_1 |
int
|
Frequency of the tone A1 |
t_a_2 |
int
|
Frequency of the tone A2 |
t_c_1 |
int
|
Frequency of the tone C1 |
t_c_2 |
int
|
Frequency of the tone C1 |
t_d_1 |
int
|
Frequency of the tone D1 |
t_e_1 |
int
|
Frequency of the tone E1 |
t_f_1 |
int
|
Frequency of the tone F1 |
t_g_1 |
int
|
Frequency of the tone G1 |
t_h_1 |
int
|
Frequency of the tone H1 |
t_off |
int
|
Frequency off |
LED_COUNT
module-attribute
¶
LED_COUNT: int = const(5)
The amount of leds in the strip on the AALeC.
LINE_HEIGHT
module-attribute
¶
LINE_HEIGHT: int = const(12)
Height of a text line on the display in pixel.
MAX_LINE_COUNT
module-attribute
¶
MAX_LINE_COUNT: int = const(5)
Number of text lines on the display.
PIN_ADC
module-attribute
¶
PIN_ADC: int = const(0)
Pin number of the adc pin (not physically the same pin as the button!)
PIN_BUTTON
module-attribute
¶
PIN_BUTTON: int = const(0)
Pin number of the button in the rotary encoder.
PIN_ENCODER_TRACK_1
module-attribute
¶
PIN_ENCODER_TRACK_1: int = const(12)
Pin number of the first track of the encoder.
PIN_ENCODER_TRACK_2
module-attribute
¶
PIN_ENCODER_TRACK_2: int = const(14)
Pin number of the second track of the encoder.
SAMPLE_PERIOD
module-attribute
¶
SAMPLE_PERIOD: int = const(6)
Sample period for debouncing the button in ms.
c_purple
module-attribute
¶
Purple color (medium brightness)
c_yellow
module-attribute
¶
Yellow color (medium brightness)
RgbColor
¶
Bases: namedtuple('RgbColorBase', ['r', 'g', 'b'])
RGB Color.
Attributes:
| Name | Type | Description |
|---|---|---|
r |
int
|
red part of the color. (0-255) |
g |
int
|
green part of the color. (0-255) |
b |
int
|
blue part of the color. (0-255) |