diff --git a/libraries/AP_Scripting/examples/LED_roll.lua b/libraries/AP_Scripting/examples/LED_roll.lua index a997c2b5a3..81de7ac04c 100644 --- a/libraries/AP_Scripting/examples/LED_roll.lua +++ b/libraries/AP_Scripting/examples/LED_roll.lua @@ -63,7 +63,7 @@ function set_Rainbow(chan, led, v) r = math.floor(rainbow[row][1] + p * (rainbow[row+1][1] - rainbow[row][1])) g = math.floor(rainbow[row][2] + p * (rainbow[row+1][2] - rainbow[row][2])) b = math.floor(rainbow[row][3] + p * (rainbow[row+1][3] - rainbow[row][3])) - serialLED:set_RGB(chan, uint32_t(1 << led), r, g, b) + serialLED:set_RGB(chan, led, r, g, b) end --[[ diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 64ec54db5a..60988b23a8 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -143,8 +143,8 @@ singleton AP_Vehicle method set_mode boolean uint8_t 0 UINT8_MAX ModeReason::SCR include AP_SerialLED/AP_SerialLED.h singleton AP_SerialLED alias serialLED -singleton AP_SerialLED method set_num_LEDs boolean uint8_t 1 16 uint8_t 0 32 -singleton AP_SerialLED method set_RGB void uint8_t 1 16 uint32_t 0U UINT32_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX +singleton AP_SerialLED method set_num_LEDs boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS +singleton AP_SerialLED method set_RGB void uint8_t 1 16 int8_t -1 INT8_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX uint8_t 0 UINT8_MAX singleton AP_SerialLED method send void include SRV_Channel/SRV_Channel.h