feat: Support for WS2812 RGB LEDs (#3909)
Co-authored-by: 3djc <lesitewebdejc@hotmail.com>
This commit is contained in:
@@ -585,6 +585,7 @@ bool isAssignableFunctionAvailable(int function, CustomFunctionData * functions)
|
||||
#endif
|
||||
#if !defined(HAPTIC)
|
||||
case FUNC_HAPTIC:
|
||||
return false;
|
||||
#endif
|
||||
#if !defined(DANGEROUS_MODULE_FUNCTIONS)
|
||||
case FUNC_RANGECHECK:
|
||||
@@ -595,11 +596,14 @@ bool isAssignableFunctionAvailable(int function, CustomFunctionData * functions)
|
||||
case FUNC_PLAY_SCRIPT:
|
||||
return false;
|
||||
#endif
|
||||
#if !defined(AUDIO_MUTE_GPIO)
|
||||
case FUNC_DISABLE_AUDIO_AMP:
|
||||
#if defined(AUDIO_MUTE_GPIO)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
#endif
|
||||
#if !defined(LED_STRIP_GPIO)
|
||||
case FUNC_RGB_LED:
|
||||
return false;
|
||||
#endif
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user