Orange Pi‎ > ‎

WS28xx/APA102/UCSx903/TLC59711/P9813 configuration

All parameters are optional. They all have a defined default value.

The WS28xx configuration can created with file "devices.txt".

Parameter name  Description
 led_type
  WS2801, WS2811, WS2812, WS2812B, WS2813, WS2815, SK6812, SK6812W,  TLC59711, UCS1903, UCS290, , APA102, P9813
 led_count
 170 (default)
 led_group_count  1 (default)
 clock_speed_hz Applicable when led_type is : WS2801, APA102 or TLC59711
 global_brightness Applicable for the APA102 only

Singleport (1x)

Parameter name Description
 dmx_start_address Applicable when led_group_count > 1 or when led_type=TLC59711

Multiport (4x / 8x)

Parameter name Description
 start_uni_port_1 
 start_uni_port_2 
 start_uni_port_3 
 start_uni_port_4 
 start_uni_port_5 
 start_uni_port_6 
 start_uni_port_7 
 start_uni_port_8 
 active_out The ports in use. (default=1)

Test modes

Parameter name Description
 test_pattern 0=no test pattern. 1=Rainbow cycle, 2=Theater chase, 3=Color wipe, 4=Scanner, 5=Fade (default=0)

Example:
#devices.txt
#led_type=WS2812B
led_count=600
# Overwrite datasheet #
#led_rgb_mapping=GRB
# Overwrite timing (us) #
#led_t0h=0.31
#led_t1h=0.78
# Grouping #
#led_group_count=1
# DMX #
#dmx_start_address=1
# Clock based chips #
#clock_speed_hz=4000000
# APA102 #
#global_brightness=255
# Multi port #
#start_uni_port_1=1
#start_uni_port_2=5
#start_uni_port_3=9
#start_uni_port_4=13
#start_uni_port_5=17
#start_uni_port_6=21
#start_uni_port_7=25
#start_uni_port_8=29
active_out=8
# 4x only #
#use_si5351A=0
# Test pattern #
#test_pattern=0

Power saving
For battery powered operation a GPIO pin of the Orange Pi Zero can be connected to a MOSFET. When there is  is no DMX or when the node is in time-out state, the GPIO pin level is low.
Comments