mirror of https://github.com/Desuuuu/klipper.git
test: Add an led test for led, neopixel, dotstar, pca9533, pca9632 configs
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e6bfc4c9aa
commit
b1ae50cfc7
|
@ -0,0 +1,44 @@
|
||||||
|
# Test case for LED config sections
|
||||||
|
|
||||||
|
[led lled]
|
||||||
|
red_pin: PA2
|
||||||
|
initial_RED: 0.2
|
||||||
|
|
||||||
|
[neopixel nled]
|
||||||
|
pin: PA3
|
||||||
|
chain_count: 4
|
||||||
|
initial_RED: 0.2
|
||||||
|
initial_GREEN: 0.3
|
||||||
|
initial_BLUE: 0.4
|
||||||
|
|
||||||
|
[dotstar dled]
|
||||||
|
data_pin: PA4
|
||||||
|
clock_pin: PA5
|
||||||
|
chain_count: 2
|
||||||
|
initial_RED: 0.2
|
||||||
|
initial_GREEN: 0.3
|
||||||
|
initial_BLUE: 0.4
|
||||||
|
|
||||||
|
[pca9533 p5led]
|
||||||
|
initial_RED: 0.1
|
||||||
|
initial_GREEN: 0.2
|
||||||
|
initial_BLUE: 0.3
|
||||||
|
|
||||||
|
[pca9632 p6led]
|
||||||
|
scl_pin: PB1
|
||||||
|
sda_pin: PB2
|
||||||
|
initial_RED: 0.4
|
||||||
|
initial_GREEN: 0.5
|
||||||
|
initial_BLUE: 0.6
|
||||||
|
|
||||||
|
[display_template dtest]
|
||||||
|
param_myvar: 1.2
|
||||||
|
text: { param_myvar }, { param_myvar / 2.0 }, 0.0, 2.0
|
||||||
|
|
||||||
|
[mcu]
|
||||||
|
serial: /dev/ttyACM0
|
||||||
|
|
||||||
|
[printer]
|
||||||
|
kinematics: none
|
||||||
|
max_velocity: 300
|
||||||
|
max_accel: 3000
|
|
@ -0,0 +1,58 @@
|
||||||
|
# Test case for LEDs
|
||||||
|
CONFIG led.cfg
|
||||||
|
DICTIONARY atmega2560.dict
|
||||||
|
|
||||||
|
# SET_LED tests
|
||||||
|
SET_LED LED=lled RED=0.2
|
||||||
|
SET_LED LED=lled RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=lled RED=0.4
|
||||||
|
SET_LED LED=lled RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
SET_LED LED=nled RED=0.2
|
||||||
|
SET_LED LED=nled RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=nled RED=0.4
|
||||||
|
SET_LED LED=nled RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
SET_LED LED=dled RED=0.2
|
||||||
|
SET_LED LED=dled RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=dled RED=0.4
|
||||||
|
SET_LED LED=dled RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
SET_LED LED=p5led RED=0.2
|
||||||
|
SET_LED LED=p5led RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=p5led RED=0.4
|
||||||
|
SET_LED LED=p5led RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
SET_LED LED=p6led RED=0.2
|
||||||
|
SET_LED LED=p6led RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=p6led RED=0.4
|
||||||
|
SET_LED LED=p6led RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
# SET_LED chain tests
|
||||||
|
SET_LED LED=nled INDEX=2 RED=0.2
|
||||||
|
SET_LED LED=nled INDEX=1 RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=nled INDEX=2 RED=0.4
|
||||||
|
SET_LED LED=nled INDEX=1 RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
SET_LED LED=dled INDEX=2 RED=0.2
|
||||||
|
SET_LED LED=dled INDEX=1 RED=0.3 TRANSMIT=0
|
||||||
|
SET_LED LED=dled INDEX=2 RED=0.4
|
||||||
|
SET_LED LED=dled INDEX=1 RED=0.5 SYNC=0
|
||||||
|
|
||||||
|
# SET_LED_TEMPLATE tests
|
||||||
|
SET_LED_TEMPLATE LED=lled TEMPLATE=dtest
|
||||||
|
SET_LED_TEMPLATE LED=lled TEMPLATE=
|
||||||
|
|
||||||
|
SET_LED_TEMPLATE LED=nled TEMPLATE=dtest
|
||||||
|
SET_LED_TEMPLATE LED=nled TEMPLATE=
|
||||||
|
SET_LED_TEMPLATE LED=nled INDEX=2 TEMPLATE=dtest
|
||||||
|
SET_LED_TEMPLATE LED=nled TEMPLATE=
|
||||||
|
|
||||||
|
SET_LED_TEMPLATE LED=dled TEMPLATE=dtest
|
||||||
|
SET_LED_TEMPLATE LED=dled TEMPLATE=
|
||||||
|
SET_LED_TEMPLATE LED=dled INDEX=2 TEMPLATE=dtest
|
||||||
|
SET_LED_TEMPLATE LED=dled TEMPLATE=
|
||||||
|
|
||||||
|
SET_LED_TEMPLATE LED=p5led TEMPLATE=dtest
|
||||||
|
|
||||||
|
SET_LED_TEMPLATE LED=p6led TEMPLATE=dtest
|
Loading…
Reference in New Issue