From 8fa7bb422921b625520b22595ce1edfda4beaa22 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 2 May 2023 04:47:38 -0600 Subject: converted Wurkkos TS10 build (and made its ramp smoother w/ better low modes) --- spaghetti-monster/chan-aux.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spaghetti-monster/chan-aux.h (limited to 'spaghetti-monster/chan-aux.h') diff --git a/spaghetti-monster/chan-aux.h b/spaghetti-monster/chan-aux.h new file mode 100644 index 0000000..c8264bd --- /dev/null +++ b/spaghetti-monster/chan-aux.h @@ -0,0 +1,9 @@ +// channel modes for single color aux LEDs +// Copyright (C) 2023 Selene ToyKeeper +// SPDX-License-Identifier: GPL-3.0-or-later +#pragma once + +void set_level_aux(uint8_t level); + +bool gradual_tick_null(uint8_t gt); + -- cgit v1.2.3 From 6c7c99b1be9a684e3a6ccc533f46979b39f7a529 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 18 Jul 2023 14:44:40 -0600 Subject: converted Emisar D4 and BLF Q8 to multi-channel, and enabled previously-removed tactical mode on the Q8 since there seems to be enough space now (also lowercased their hwdef files) --- spaghetti-monster/chan-aux.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'spaghetti-monster/chan-aux.h') diff --git a/spaghetti-monster/chan-aux.h b/spaghetti-monster/chan-aux.h index c8264bd..ff599b8 100644 --- a/spaghetti-monster/chan-aux.h +++ b/spaghetti-monster/chan-aux.h @@ -3,6 +3,22 @@ // SPDX-License-Identifier: GPL-3.0-or-later #pragma once +#define NUM_AUX_CHANNEL_MODES 1 + +// include / exclude field based on compile options +#ifdef USE_CHANNEL_MODE_ARGS + #define AUX_HAS_ARGS , .has_args = 0 +#else + #define AUX_HAS_ARGS +#endif + +#define AUX_CHANNELS \ + { \ + .set_level = set_level_aux, \ + .gradual_tick = gradual_tick_null \ + AUX_HAS_ARGS \ + } + void set_level_aux(uint8_t level); bool gradual_tick_null(uint8_t gt); -- cgit v1.2.3