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:
3djc
2024-03-14 19:08:59 +10:00
committed by GitHub
co-authored by 3djc Peter Feerick
parent ab2b773b14
commit 84a90a75e4
27 changed files with 149 additions and 57 deletions
+4 -4
View File
@@ -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
}