~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/config-mode.h

  • Committer: Selene ToyKeeper
  • Date: 2023-11-04 15:09:10 UTC
  • mfrom: (483.1.175 anduril2)
  • Revision ID: bzr@toykeeper.net-20231104150910-ddd3afw4nhfvof2l
merged anduril2 branch -> fsm, with *years* of changes
(this also means this code is now Anduril 2 instead of Anduril 1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// config-mode.h: Config mode base functions for Anduril.
 
2
// Copyright (C) 2017-2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
 
 
5
#pragma once
 
6
 
 
7
// menus can use 2 colors
 
8
#if defined (CONFIG_WAITING_CHANNEL) || defined(CONFIG_BLINK_CHANNEL)
 
9
#define USE_CONFIG_COLORS
 
10
#endif
 
11
 
 
12
#if NUM_CHANNEL_MODES > 1
 
13
// when true, changes the channel mode for each config step
 
14
bool config_color_per_step = false;
 
15
#endif
 
16
 
 
17
// config menu
 
18
uint8_t config_state_base(
 
19
    Event event,
 
20
    uint16_t arg,
 
21
    uint8_t num_config_steps,
 
22
    void (*savefunc)(uint8_t step, uint8_t value)
 
23
    );
 
24