AP_Scripting: support set_num_neopixel_rgb()

This commit is contained in:
Andy Piper 2023-09-29 10:53:51 +01:00 committed by Andrew Tridgell
parent 1035ac76b2
commit dd7f65ec51
2 changed files with 6 additions and 0 deletions

View File

@ -1968,6 +1968,11 @@ function serialLED:set_num_profiled(chan, num_leds) end
---@return boolean
function serialLED:set_num_neopixel(chan, num_leds) end
-- desc
---@param chan integer
---@param num_leds integer
---@return boolean
function serialLED:set_num_neopixel_rgb(chan, num_leds) end
-- desc
---@class vehicle

View File

@ -298,6 +298,7 @@ include AP_SerialLED/AP_SerialLED.h
singleton AP_SerialLED rename serialLED
singleton AP_SerialLED depends AP_SERIALLED_ENABLED
singleton AP_SerialLED method set_num_neopixel boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
singleton AP_SerialLED method set_num_neopixel_rgb boolean uint8_t 1 16 uint8_t 0 AP_SERIALLED_MAX_LEDS
singleton AP_SerialLED method set_num_profiled 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'skip_check uint8_t'skip_check uint8_t'skip_check
singleton AP_SerialLED method send void uint8_t 1 16