feat: support for RadioMaster GX12 (#5703)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
raphaelcoeffic
philmoz
Peter Feerick
parent
0f86cd9a95
commit
36cdd93a1a
@@ -50,6 +50,16 @@ void rgbSetLedColor(uint8_t led, uint8_t r, uint8_t g, uint8_t b)
|
||||
#endif
|
||||
}
|
||||
|
||||
uint32_t rgbGetLedColor(uint8_t led)
|
||||
{
|
||||
return ws2812_get_color(led);
|
||||
}
|
||||
|
||||
bool rgbGetState(uint8_t led)
|
||||
{
|
||||
return ws2812_get_state(led);
|
||||
}
|
||||
|
||||
void rgbLedColorApply()
|
||||
{
|
||||
ws2812_update(&_led_timer);;
|
||||
|
||||
@@ -24,4 +24,6 @@
|
||||
void rgbLedStart();
|
||||
void rgbLedStop();
|
||||
void rgbSetLedColor(unsigned char, unsigned char, unsigned char, unsigned char);
|
||||
uint32_t rgbGetLedColor(uint8_t led);
|
||||
bool rgbGetState(unsigned char);
|
||||
void rgbLedColorApply();
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
void boardInitSwitches()
|
||||
__weak void boardInitSwitches()
|
||||
{
|
||||
_init_switches();
|
||||
}
|
||||
|
||||
SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx)
|
||||
__weak SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx)
|
||||
{
|
||||
return stm32_switch_get_position(&_switch_offsets[cat][idx]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user