Led channel not set

I have set up WS2812 on Matek F405wing and F765wing. on the screen of radio. it tells LED channel not set. does it mean WS2812 LED? I can’t find where is the setup for turn on and off the WS2812. it is always lights up once the plane is power on. can anyone tell how to do so on 405wing and 765wing?

That seems to be a scripting error message. What are your trying to do with LEDs? What script do you have loaded and how are the LEDs connected?

I am trying to control the ws2812 with lua script or at least it can be turned on and off. It is 3 wires connected. Din with power,+,- and Dout.

it is current working with setting
|NTF_LED_LEN|10|
|NTF_LED_OVERRIDE|0|
|NTF_BUZZ_ON_LVL|1|
|NTF_BUZZ_PIN|0|
|NTF_BUZZ_TYPES|1|
|NTF_BUZZ_VOLUME|100|
|NTF_DISPLAY_TYPE|0|
|NTF_LED_BRIGHT|3|
|NTF_LED_TYPES|256|

this is the script setting
|SCR_DEBUG_LVL|0|
|SCR_DIR_DISABLE|0|
|SCR_ENABLE|1|
|SCR_HEAP_SIZE|44032|
|SCR_USER1|0|
|SCR_USER2|0|
|SCR_USER3|0|
|SCR_USER4|0|
|SCR_VM_I_COUNT|10000|

this is the script
led_roll.lua (2.2 KB)

you have to setup servo output function 94 for the LEDs, see the comment on line 12 of the script.

I have changed it to servo13_function to 94
Now the radio showes LEDs; chan=13. but the LED does not lightup. does number of LED matters? I only have 10 leds connected as the script have 30 leds.

set the number or LEDs in the script to match the number you have connected. You will also need to make sure the channel is being setup correctly. Look for the RCOut: message in the messages tab.

is this script runs all the time or does it need to assign a rc_option to contril its on and off? I have tried both way to control. neither works.

servo13 either set 120 with RCout messge RCOut: RCOut: DS150:1-2 PWM:3-12 NeoP:13 or set 94 RCOut: DS150:1-2 PWM:3-13.

I don’t know where did I do wrong? can you take a look of the script again. I have changed servon_function. and led number. or still got something missed?
led_roll.lua (2.2 KB)

you need to comment line 29 and uncomment 28 for neopixles.

do you mean to delete line 28 and change line 29 to serialLED:set_10_profiled(chan, num_leds)

Your script needs:

serialLED:set_num_neopixel(chan, num_leds)

since your using neopixels and not profi LEDs

so delete line 28 and set line 29 to serialLED:set_10_neopixel(chan, num_leds) ?

led_roll_fixed.lua (2.2 KB)

thank you so much and sorry for I am being so stupid.

sorry to bother again. the scripts does not run.
message showes; RCOut: DS150:1-2 PWM:3-13

2021/8/14 0:34:03 : u-blox 1 HW: 00080000 SW: ROM CORE 3.01 (107888)
2021/8/14 0:34:00 : GPS: u-blox 1 saving config
2021/8/14 0:33:57 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 0:33:57 : RCOut: DS150:1-2 PWM:3-13
2021/8/14 0:33:57 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 0:33:57 : ChibiOS: 08877972
2021/8/14 0:33:57 : ArduPlane V4.1.0beta4 (3de5ca6e)
2021/8/14 0:33:57 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 0:33:57 : RCOut: DS150:1-2 PWM:3-13
2021/8/14 0:33:57 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 0:33:57 : ChibiOS: 08877972
2021/8/14 0:33:57 : ArduPlane V4.1.0beta4 (3de5ca6e)
2021/8/14 0:33:56 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 0:33:56 : RCOut: DS150:1-2 PWM:3-13
2021/8/14 0:33:56 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 0:33:56 : ChibiOS: 08877972
2021/8/14 0:33:56 : ArduPlane V4.1.0beta4 (3de5ca6e)

You have SERVO13_FUNCTION = 94?

yes, SERVO13_FUNCTION = 94

It worked for one time for somehow. it showes

2021/8/14 21:20:57 : WDG: T-3 SL0 FL128 FT3 FA0 FTP181 FLR8113119 FICSR
2021/8/14 21:20:52 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 21:20:52 : RCOut: DS150:1-2 PWM:3-12 NeoP:13
2021/8/14 21:20:52 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 21:20:52 : ChibiOS: 08877972
2021/8/14 21:20:52 : ArduPlane V4.1.0beta4 (3de5ca6e)
2021/8/14 21:20:52 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 21:20:52 : RCOut: DS150:1-2 PWM:3-12 NeoP:13
2021/8/14 21:20:52 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 21:20:52 : ChibiOS: 08877972
2021/8/14 21:20:52 : ArduPlane V4.1.0beta4 (3de5ca6e)
2021/8/14 21:20:51 : IMU0: fast sampling enabled 8.0kHz/2.0kHz
2021/8/14 21:20:51 : RCOut: DS150:1-2 PWM:3-12 NeoP:13
2021/8/14 21:20:51 : MatekF765-Win 00330031 31375111 3738393
2021/8/14 21:20:51 : ChibiOS: 08877972
2021/8/14 21:20:51 : ArduPlane V4.1.0beta4 (3de5ca6e)

Can you tell me how to use RCx_option from 300-307. is it to swith on and off the script? how can we tell the number of the script? how to use scr_user1-4? thank you for your help.