feat: support Jumper T20 V2 (#4701)
Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
3djc
Peter Feerick
parent
ab2b773b14
commit
84a90a75e4
@@ -29,7 +29,7 @@ const unsigned char bmp_sleep[] = {
|
||||
#include "sleep.lbm"
|
||||
};
|
||||
|
||||
#if defined(RADIO_T20)
|
||||
#if defined(RADIO_FAMILY_T20)
|
||||
constexpr uint8_t steps = NUM_FUNCTIONS_SWITCHES/2;
|
||||
#elif defined(FUNCTION_SWITCHES)
|
||||
constexpr uint8_t steps = NUM_FUNCTIONS_SWITCHES;
|
||||
@@ -53,7 +53,7 @@ void drawStartupAnimation(uint32_t duration, uint32_t totalDuration)
|
||||
for (uint8_t j = 0; j < steps; j++) {
|
||||
if (index2 > j) {
|
||||
fsLedOn(j);
|
||||
#if defined(RADIO_T20)
|
||||
#if defined(RADIO_FAMILY_T20)
|
||||
fsLedOn(j + steps);
|
||||
#endif
|
||||
}
|
||||
@@ -89,12 +89,12 @@ void drawShutdownAnimation(uint32_t duration, uint32_t totalDuration,
|
||||
|
||||
for (uint8_t j = 0; j < steps; j++) {
|
||||
fsLedOff(j);
|
||||
#if defined(RADIO_T20)
|
||||
#if defined(RADIO_FAMILY_T20)
|
||||
fsLedOff(j + steps);
|
||||
#endif
|
||||
if (steps - index2 > j) {
|
||||
fsLedOn(j);
|
||||
#if defined(RADIO_T20)
|
||||
#if defined(RADIO_FAMILY_T20)
|
||||
fsLedOn(j + steps);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user