~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/tactical-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
// tactical-mode.h: Tactical mode for Anduril.
 
2
// Copyright (C) 2023 Selene ToyKeeper
 
3
// SPDX-License-Identifier: GPL-3.0-or-later
 
4
 
 
5
#pragma once
 
6
 
 
7
#ifndef TACTICAL_LEVELS
 
8
    // high, low, tactical strobe
 
9
    // only do color strobe here if it's main LEDs, not aux LEDs
 
10
    #if defined(USE_POLICE_COLOR_STROBE_MODE) && !defined(POLICE_STROBE_USES_AUX)
 
11
        // 2-color police style strobe
 
12
        #define TACTICAL_LEVELS 120,30,(RAMP_SIZE+3)
 
13
    #else
 
14
        // regular tactical strobe (1 color)
 
15
        #define TACTICAL_LEVELS 120,30,(RAMP_SIZE+2)
 
16
    #endif
 
17
#endif
 
18
 
 
19
// tactical(ish) mode
 
20
uint8_t tactical_state(Event event, uint16_t arg);
 
21
uint8_t tactical_config_state(Event event, uint16_t arg);
 
22