Merge pull request #1158 from gedankenexperimenter/automated-iwyu

Automate updating of header includes
pull/1160/head
Jesse Vincent 3 years ago committed by GitHub
commit 039818e482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,12 @@
src/Kaleidoscope.h
src/Kaleidoscope-LEDControl.h
src/kaleidoscope/HIDTables.h
src/kaleidoscope/driver/bootloader/gd32/Base.h
src/kaleidoscope/driver/led/Base.h
src/kaleidoscope/driver/led/WS2812.h
src/kaleidoscope/driver/led/ws2812/config.h
src/kaleidoscope/driver/mcu/GD32.h
src/kaleidoscope/driver/storage/GD32Flash.h
plugins/Kaleidoscope-FirmwareDump/**
plugins/Kaleidoscope-HostOS/src/kaleidoscope/plugin/HostOS.h
plugins/Kaleidoscope-Hardware-EZ-ErgoDox/src/kaleidoscope/device/ez/ErgoDox/i2cmaster.h

@ -0,0 +1,6 @@
#!/usr/bin/env bash
: "${KALEIDOSCOPE_DIR:=$(pwd)}"
cd "${KALEIDOSCOPE_DIR}" || exit 1
git ls-files -m | grep -E '\.(h|cpp)$' | xargs "${KALEIDOSCOPE_DIR}"/bin/iwyu.py

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Copyright (c) 2022 Michael Richters <gedankenexperimenter@gmail.com> # Copyright (c) 2022 Michael Richters <gedankenexperimenter@gmail.com>
@ -28,7 +28,6 @@
# For more information, please refer to <http://unlicense.org/> # For more information, please refer to <http://unlicense.org/>
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
"""This is a script for maintenance of the headers included in Kaleidoscope source """This is a script for maintenance of the headers included in Kaleidoscope source
files. It is not currently possible to run this automatically on all files. It is not currently possible to run this automatically on all
Kaleidoscope source files, because of the peculiarities therein. It uses Kaleidoscope source files, because of the peculiarities therein. It uses
@ -46,49 +45,172 @@ made).
# Example invocation: # Example invocation:
# $ git ls-files -m | grep '\.\(h\|cpp\)' | bin/iwyu.py # $ git ls-files -m | grep '\.\(h\|cpp\)' | bin/iwyu.py
import argparse
import glob
import logging
import os import os
import re
import shlex
import shutil import shutil
import subprocess import subprocess
import sys import sys
# ==============================================================================
def parse_args(args):
parser = argparse.ArgumentParser(
description=
"""Run `include-what-you-use` on source files given as command-line arguments and/or read
from standard input. When reading target filenames from standard input, they should be
either absolute or relative to the current directory, and each line of input (minus the
line-ending character(s) is treated as a filename.""")
parser.add_argument(
'-q',
'--quiet',
dest='loglevel',
help="Suppress output except warnings and errors.",
action='store_const',
const=logging.ERROR,
default=logging.WARNING,
)
parser.add_argument(
'-v',
'--verbose',
dest='loglevel',
help="Output verbose debugging information.",
action='store_const',
const=logging.INFO,
)
parser.add_argument(
'-d',
'--debug',
dest='loglevel',
help="""Save output from `include-what-you-use` for processed files beside the
originals, with a '.iwyu' suffix, for debugging purposes.""",
action='store_const',
const=logging.DEBUG,
)
parser.add_argument(
'-r',
'--regex',
dest='regex',
help="""A regular expression for matching filenames Only the basename of the file is
matched, and the regex is only used when searching a directory for files to process,
not on target filenames specified in arguments or read from standard input.""",
action='store',
default=r'\.(h|cpp)$',
)
parser.add_argument(
'-i',
'--ignores_file',
dest='ignores_file',
metavar='<ignores_file>',
help=
"""The name of a file (relative to KALEIDOSCOPE_DIR) that contains a list of glob
patterns that will be ignored when a target directory is searched for filenames that
match <regex>.""",
action='store',
default='.iwyu_ignore',
)
parser.add_argument(
'targets',
metavar="<target>",
nargs='+',
help=
"""A list of target files and/or directories to search for source files to format. Any
target file will be processed, regardless of the filename. Any target directory will
be recursively searched for files matching the regular expression given by --regex.
Filenames and directories beginning with a '.' will always be excluded from the search,
but can still be processed if specified as a command-line target.""",
)
return parser.parse_args(args)
# ==============================================================================
def setup_logging(loglevel):
"""Set up basic logging
Args:
:int:loglevel: minimum loglevel for emitting messages
"""
logformat = "%(message)s"
logging.basicConfig(
level=loglevel,
stream=sys.stdout,
format=logformat,
datefmt="",
)
# ==============================================================================
def main(): def main():
"""Organize includes in Kaleidoscpe source files.""" """Main entry point function."""
# Parse command-line arguments:
opts = parse_args(sys.argv[1:])
# Set up logging system:
setup_logging(opts.loglevel)
# ----------------------------------------------------------------------
# Find include-what-you-use:
iwyu = shutil.which('include-what-you-use') iwyu = shutil.which('include-what-you-use')
print(f'IWYU: {iwyu}') logging.info("Found `include-what-you-use` executable: %s", iwyu)
iwyu_flags = [ iwyu_opts = [
'-Xiwyu', '--no_fwd_decls', # No forward declarations '--no_fwd_decls', # No forward declarations
'-x', 'c++', '--max_line_length=100',
'--update_comments',
] ]
# Prepend '-Xiwyu' to each `include-what-you-use` option:
iwyu_opts = [_ for opt in iwyu_opts for _ in ('-Xiwyu', opt)]
# ----------------------------------------------------------------------
# Find fix_includes:
fix_includes = shutil.which('fix_includes.py') fix_includes = shutil.which('fix_includes.py')
print(f'fix_includes: {fix_includes}') logging.debug("Found `fix_includes` executable: %s", fix_includes)
# ----------------------------------------------------------------------
# Find clang (first checking environment variable):
clang = os.getenv('CLANG_COMPILER') clang = os.getenv('CLANG_COMPILER')
if clang is None: if clang is None:
clang = shutil.which('clang') clang = shutil.which('clang')
print(f'clang: {clang}') logging.debug("Found `clang` executable: %s", clang)
result = subprocess.run([clang, '-print-resource-dir'], # Get system include dir from `clang`:
capture_output=True, check=True) clang_cmd = [clang, '-print-resource-dir']
logging.debug("Running command: `%s`", shlex.join(clang_cmd))
result = subprocess.run(clang_cmd, capture_output=True, check=True)
clang_resource_dir = result.stdout.decode('utf-8').rstrip() clang_resource_dir = result.stdout.decode('utf-8').rstrip()
system_include_dir = os.path.join(clang_resource_dir, 'include') system_include_dir = os.path.join(clang_resource_dir, 'include')
logging.debug("Using system include dir: %s", system_include_dir)
# ----------------------------------------------------------------------
# Get $KALEIDOSCOPE_DIR from enironment, falling back on `pwd`:
kaleidoscope_dir = os.getenv('KALEIDOSCOPE_DIR') kaleidoscope_dir = os.getenv('KALEIDOSCOPE_DIR')
if kaleidoscope_dir is None: if kaleidoscope_dir is None:
kaleidoscope_dir = os.getcwd() kaleidoscope_dir = os.getcwd()
logging.debug("Using Kaleidoscope dir: %s", kaleidoscope_dir)
kaleidoscope_src_dir = os.path.join(kaleidoscope_dir, 'src') kaleidoscope_src_dir = os.path.join(kaleidoscope_dir, 'src')
print(f'KALEIDOSCOPE_DIR: {kaleidoscope_dir}')
# Define locations of other dirs to find Arduino libraries:
virtual_hardware_dir = os.path.join( virtual_hardware_dir = os.path.join(
kaleidoscope_dir, '.arduino', 'user', 'hardware', 'keyboardio', 'virtual' kaleidoscope_dir, '.arduino', 'user', 'hardware', 'keyboardio', 'virtual')
) logging.debug("Using virtual hardware dir: %s", virtual_hardware_dir)
virtual_arduino_core_dir = os.path.join(virtual_hardware_dir, 'cores', 'arduino') virtual_arduino_core_dir = os.path.join(virtual_hardware_dir, 'cores', 'arduino')
logging.debug("Using virtual arduino core: %s", virtual_arduino_core_dir)
virtual_model01_dir = os.path.join(virtual_hardware_dir, 'variants', 'model01') virtual_model01_dir = os.path.join(virtual_hardware_dir, 'variants', 'model01')
virtual_keyboardiohid_dir = os.path.join(virtual_hardware_dir, logging.debug("Using virtual Model01 dir: %s", virtual_model01_dir)
'libraries', 'KeyboardioHID', 'src')
virtual_keyboardiohid_dir = os.path.join(
virtual_hardware_dir, 'libraries', 'KeyboardioHID', 'src')
logging.debug("Using virtual KeyboardioHID dir: %s", virtual_keyboardiohid_dir)
clang_flags = [ # ----------------------------------------------------------------------
# Create the long list of options passed to `clang` via `include-what-you-use`.
# First, we tell it we're using C++:
clang_opts = ['-x', 'c++']
# General compiler options:
clang_opts += [
'-c', '-c',
'-g', '-g',
'-Wall', '-Wall',
@ -103,76 +225,197 @@ def main():
'-Wno-unused-variable', '-Wno-unused-variable',
'-Wno-ignored-qualifiers', '-Wno-ignored-qualifiers',
'-Wno-type-limits', '-Wno-type-limits',
'-D' + 'KALEIDOSCOPE_VIRTUAL_BUILD=1', '-Wno-pragma-once-outside-header',
'-D' + 'KEYBOARDIOHID_BUILD_WITHOUT_HID=1',
'-D' + 'USBCON=dummy',
'-D' + 'ARDUINO_ARCH_AVR=1',
'-D' + 'ARDUINO=10607',
'-D' + 'ARDUINO_AVR_MODEL01',
'-D' + 'ARDUINO_ARCH_VIRTUAL',
'-D' + 'USB_VID=0x1209',
'-D' + 'USB_PID=0x2301',
'-D' + 'USB_MANUFACTURER="Keyboardio"',
'-D' + 'USB_PRODUCT="Model 01"',
'-D' + 'KALEIDOSCOPE_HARDWARE_H="Kaleidoscope-Hardware-Keyboardio-Model01.h"',
'-D' + 'TWI_BUFFER_LENGTH=32',
'-I' + system_include_dir,
'-I' + kaleidoscope_src_dir,
'-I' + virtual_arduino_core_dir,
'-I' + virtual_model01_dir,
'-I' + virtual_keyboardiohid_dir,
] ]
plugins_dir = os.path.join(kaleidoscope_dir, 'plugins') # Variables we define to do a Kaleidoscope build:
for basename in os.listdir(plugins_dir): defines = [
plugin_dir = os.path.join(plugins_dir, basename) 'KALEIDOSCOPE_VIRTUAL_BUILD=1',
if not os.path.isdir(plugin_dir): 'KEYBOARDIOHID_BUILD_WITHOUT_HID=1',
continue 'USBCON=dummy',
clang_flags.append('-I' + os.path.join(plugin_dir, 'src')) 'ARDUINO_ARCH_AVR=1',
'ARDUINO=10607',
for arg in [iwyu] + iwyu_flags: 'ARDUINO_AVR_MODEL01',
print(arg) 'ARDUINO_ARCH_VIRTUAL',
for arg in clang_flags: 'USB_VID=0x1209',
print(arg) 'USB_PID=0x2301',
'USB_MANUFACTURER="Keyboardio"',
for source_file in sys.argv[1:]: 'USB_PRODUCT="Model 01"',
iwyu_cmd = [iwyu] + iwyu_flags + clang_flags + [source_file] 'KALEIDOSCOPE_HARDWARE_H="Kaleidoscope-Hardware-Keyboardio-Model01.h"',
print('------------------------------------------------------------') 'TWI_BUFFER_LENGTH=32',
print(f'File: {source_file}') ]
clang_opts += ['-D' + _ for _ in defines]
# Sometimes, it's useful to force IWYU to make changes, or to have a
# more definitive marker of whether or not it failed due to compilation # Directories to search for libraries to include:
# errors (which may differ between IWYU and normal compilation, includes = [
# unfortunately). If so, the follwing code can be uncommented. It adds system_include_dir,
# a harmless `#include` at the end of the file, which will be removed if kaleidoscope_src_dir,
# this script runs successfully. virtual_arduino_core_dir,
virtual_model01_dir,
# with open(source_file, "rb+") as fd: virtual_keyboardiohid_dir,
# fd.seek(-1, 2) ]
# char = fd.read(1) # Include plugin source dirs for plugins that depend on other plugins:
# if char != b'\n': includes += glob.glob(os.path.join(kaleidoscope_dir, 'plugins', '*', 'src'))
# print('missing newline at end of file') clang_opts += ['-I' + _ for _ in includes]
# fd.write(b'\n')
# if source_file != 'src/kaleidoscope/HIDTables.h': # ----------------------------------------------------------------------
# fd.write(b'#include "kaleidoscope/HIDTables.h"') # Define the `include-what-you-use` command (sans target files)
iwyu_cmd = [iwyu] + iwyu_opts + clang_opts
iwyu_proc = subprocess.run(iwyu_cmd, capture_output=True, check=False) logging.debug("Using IWYU command: %s", ' \\\n\t'.join(iwyu_cmd))
fix_includes_cmd = [ fix_includes_cmd = [
fix_includes, fix_includes,
'--update_comments', '--update_comments',
'--nosafe_headers', '--nosafe_headers',
# Don't change the order of headers in existing files, because some '--reorder',
# of them have been changed from what IWYU will do. For new files, '--separate_project_includes=' + kaleidoscope_src_dir, # Does this help?
# use `--reorder` instead.
'--noreorder',
] ]
subprocess.run(fix_includes_cmd, input=iwyu_proc.stderr, check=False) logging.debug("Using `fix_includes` command: %s", ' \\\n\t'.join(fix_includes_cmd))
# ----------------------------------------------------------------------
targets = opts.targets
# If stdin is a pipe, read pathname targets, one per line. This allows us to
# connect the output of `find` to our input conveniently:
if not sys.stdin.isatty():
targets += sys.stdin.read().splitlines()
# ----------------------------------------------------------------------
iwyu_ignores_file = os.path.join(kaleidoscope_dir, opts.ignores_file)
ignores = build_ignores_list(iwyu_ignores_file)
# ----------------------------------------------------------------------
regex = re.compile(opts.regex)
exit_code = 0
for src in (_ for t in targets for _ in build_target_list(t, regex)):
if src in ignores:
logging.info("Skipping ignored file: %s", os.path.relpath(src))
continue
if not run_iwyu(os.path.relpath(src), iwyu_cmd, fix_includes_cmd):
exit_code = 1
return exit_code
# ==============================================================================
def build_target_list(path, src_regex):
"""Docstring"""
logging.debug("Searching target: %s", path)
# If the specified path is a filename, return it (as a list), regardless of
# whether or not it matches the regex.
if os.path.isfile(path):
return [path]
# If the specified path is not valid, just return an empty list.
if not os.path.isdir(path):
logging.error("Error: File not found: %s", path)
return []
# The specified path is a directory, so we search recursively for files
# contained therein that match the specified regular expression.
targets = []
for root, dirs, files in os.walk(os.path.abspath(path)):
logging.debug("Searching dir: %s", root)
# First, ignore all dotfiles (and directories).
dotfiles = set(glob.glob('.*'))
dirs = set(dirs) - dotfiles
files = set(files) - dotfiles
logging.debug("Files found: %s", ', '.join(files))
# Add all matching files to the list of source files to be formatted.
for f in filter(src_regex.search, files):
logging.debug("Source file found: %s", f)
targets.append(os.path.join(root, f))
return [os.path.abspath(_) for _ in targets]
# ==============================================================================
def build_ignores_list(ignores_file_path):
logging.debug("Searching for ignores file: %s", ignores_file_path)
# If the ignores file doesn't exist, return an empty list:
if not os.path.isfile(ignores_file_path):
logging.debug("Ignores file not found")
return []
ignores_list = []
with open(ignores_file_path) as f:
for line in f.read().splitlines():
logging.debug("Ignoring files like: %s", line)
if line.startswith('#'):
continue
ignores_list += glob.glob(line, recursive=True)
ignores_file_dir = os.path.dirname(ignores_file_path)
with cwd(ignores_file_dir):
ignores_list[:] = [os.path.abspath(_) for _ in ignores_list]
logging.debug("Ignores list:\n\t%s", "\n\t".join(ignores_list))
return ignores_list
# ------------------------------------------------------------------------------
from contextlib import contextmanager
@contextmanager
def cwd(path):
"""A simple function change directory, an automatically restore the previous working
directory when done, using `with cwd(temp_dir):`"""
old_wd = os.getcwd()
os.chdir(path)
try:
yield
finally:
os.chdir(old_wd)
# ==============================================================================
def run_iwyu(source_file, iwyu_cmd, fix_includes_cmd):
"""Run `include-what-you-use` on <source_file>, an update that file's header includes by
sending the output to `fix_includes.py`. If either command returns an error code, return
`False`, otherwise return `True`."""
logging.info("Processing file: %s", source_file)
# Run IWYU on <source_file>
iwyu_proc = subprocess.run(iwyu_cmd + [source_file], capture_output=True, check=False)
# If IWYU returns an error, report on it:
if iwyu_proc.returncode != 0:
logging.error("Error: failed to parse file: %s", source_file)
logging.debug("IWYU returned: %s", iwyu_proc.returncode)
logging.debug("STDOUT:\n%s", iwyu_proc.stdout.decode('utf-8'))
logging.debug("STDERR:\n%s", iwyu_proc.stderr.decode('utf-8'))
# In addition to reporting the error, save the output for analysis:
with open(source_file + '.iwyu', 'wb') as f:
f.write(iwyu_proc.stderr)
# Don't run fix_includes if there was an error (or if we've got an old version of IWYU
# that returns bogus exit codes):
return False
# IWYU reports on the associated header of *.cpp files, but if we want to skip processing
# that header, we need to use only the part of the output for the *.cpp file. Fortunately,
# the header is listed first, so we only need to search for the start of the target file's
# section of the output.
n = iwyu_proc.stderr.find(f"\n{source_file} should".encode('utf-8'))
iwyu_stderr = iwyu_proc.stderr[n:]
# Run fix_includes.py, using the output (stderr) of IWYU:
fix_includes_proc = subprocess.run(
fix_includes_cmd, input=iwyu_stderr, capture_output=True, check=False)
# Report any errors returned by fix_includes.py:
if fix_includes_proc.returncode != 0:
logging.error("Error: failed to fix includes for file: %s", source_file)
logging.debug("fix_includes.py returned: %s", fix_includes_proc.returncode)
logging.debug("STDOUT:\n%s", fix_includes_proc.stdout.decode('utf-8'))
logging.debug("STDERR:\n%s", fix_includes_proc.stderr.decode('utf-8'))
return False
# Return true on success, false otherwise:
return True
# Optionally, we can write the output of `include-what-you-use` to a
# file for debugging purposes:
# with open(source_file + '.iwyu', 'wb') as fd:
# fd.write(iwyu_proc.stderr)
# ==============================================================================
if __name__ == "__main__": if __name__ == "__main__":
main() try:
sys.exit(main())
except KeyboardInterrupt:
logging.info("Aborting")
sys.exit(1)

@ -390,6 +390,10 @@ If a plugin library has symbols meant to be exported, and more than one header f
#include "kaleidoscope/plugin/something/Helper.h" #include "kaleidoscope/plugin/something/Helper.h"
``` ```
### Automated header includes checking
We have an automated wrapper for the `include-what-you-use` program from LLVM that processes most Kaleidoscope source files and updates their header includes to comply with the style guide. It requires at least version 0.18 of `include-what-you-use` in order to function properly (because earlier versions do not return a useful exit code, so determining if there was an error was difficult). It can be run by using the `make check-includes` target in the Kaleidoscope Makefile.
<!-- TODO: Finish converting the rest... --> <!-- TODO: Finish converting the rest... -->
## Scoping ## Scoping

@ -21,7 +21,7 @@
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1, Key_A #include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1, Key_A, Key_F1, Key_F12, Key...
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, keyIsInjected #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, keyIsInjected
// IWYU pragma: no_include "HIDAliases.h" // IWYU pragma: no_include "HIDAliases.h"

@ -17,15 +17,14 @@
#include "kaleidoscope/plugin/AutoShift.h" // IWYU pragma: associated #include "kaleidoscope/plugin/AutoShift.h" // IWYU pragma: associated
#include <Arduino.h> // for PSTR, strcmp_P, str... #include <Arduino.h> // for PSTR, strcmp_P, strncmp_P
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/Base.h" // for Base<>::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/device/virtual/Virtual.h" // for VirtualProps::Storage #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,21 +17,20 @@
#include "kaleidoscope/plugin/CharShift.h" #include "kaleidoscope/plugin/CharShift.h"
#include <Arduino.h> // for F, __FlashS... #include <Arduino.h> // for F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, Focu... #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for CS_FIRST #include <Kaleidoscope-Ranges.h> // for CS_FIRST, CS_LAST
#include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<... #include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<>::Iterator, KeyAddrMap
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyMap.h" // for KeyMap #include "kaleidoscope/KeyMap.h" // for KeyMap
#include "kaleidoscope/LiveKeys.h" // for LiveKeys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/Base.h" // for Base<>::HID #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID
#include "kaleidoscope/device/virtual/Virtual.h" // for VirtualProp...
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey, Key_LeftShift
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff
#include "kaleidoscope/progmem_helpers.h" // for cloneFromPr... #include "kaleidoscope/progmem_helpers.h" // for cloneFromProgmem
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,14 +17,14 @@
#include "kaleidoscope/plugin/Colormap.h" #include "kaleidoscope/plugin/Colormap.h"
#include <Arduino.h> // for F, PSTR, __FlashStrin... #include <Arduino.h> // for F, PSTR, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-LED-Palette-Theme.h> // for LEDPaletteTheme #include <Kaleidoscope-LED-Palette-Theme.h> // for LEDPaletteTheme
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl

@ -17,14 +17,14 @@
#pragma once #pragma once
#include <stdint.h> // for uint8_t, uin... #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -25,9 +25,9 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::E...
#include "kaleidoscope/key_defs.h" // for Key, Key_Backspace #include "kaleidoscope/key_defs.h" // for Key, Key_Backspace, CTRL_HELD, GUI_HELD
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED, WAS_PRESSED, keyTog...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,12 +17,12 @@
#include "kaleidoscope/plugin/CycleTimeReport.h" #include "kaleidoscope/plugin/CycleTimeReport.h"
#include <Arduino.h> // for micros, F, __FlashStr... #include <Arduino.h> // for micros, F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, uint32_t #include <stdint.h> // for uint16_t, uint32_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,9 +17,11 @@
#pragma once #pragma once
#include <Arduino.h> // for PROGMEM, F #include <Arduino.h> // for PROGMEM
#include <stddef.h> // for size_t #include <stddef.h> // for size_t
// IWYU pragma: no_include "WString.h"
#ifndef ARDUINOTRACE_ENABLE #ifndef ARDUINOTRACE_ENABLE
#define ARDUINOTRACE_ENABLE 1 #define ARDUINOTRACE_ENABLE 1
#endif #endif

@ -23,7 +23,8 @@
#endif #endif
#endif #endif
#include "ArduinoTrace.h" // for ARDUINOTRACE_INIT
#include <HardwareSerial.h> // for DebugStderrSerial, DebugStderr #include <HardwareSerial.h> // for DebugStderrSerial, DebugStderr
#include "ArduinoTrace.h" // for ARDUINOTRACE_INIT
ARDUINOTRACE_INIT(9600) ARDUINOTRACE_INIT(9600)

@ -16,21 +16,20 @@
#include "kaleidoscope/plugin/DynamicMacros.h" #include "kaleidoscope/plugin/DynamicMacros.h"
#include <Arduino.h> // for delay, PSTR, strc... #include <Arduino.h> // for delay, PSTR, strcmp_P, F, __FlashStri...
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for DYNAMIC_MACRO_FIRST #include <Kaleidoscope-Ranges.h> // for DYNAMIC_MACRO_FIRST, DYNAMIC_MACRO_LAST
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Sto... #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED, WAS_PRESSED
#include "kaleidoscope/plugin/EEPROM-Settings.h" // for EEPROMSettings #include "kaleidoscope/plugin/EEPROM-Settings.h" // for EEPROMSettings
// This is a special exception to the rule of only including a plugin's // This is a special exception to the rule of only including a plugin's
// top-level header file, because DynamicMacros doesn't depend on the Macros // top-level header file, because DynamicMacros doesn't depend on the Macros
// plugin itself; it's just using the same macro step definitions. // plugin itself; it's just using the same macro step definitions.
#include "kaleidoscope/plugin/Macros/MacroSteps.h" // for MACRO_ACTION_END #include "kaleidoscope/plugin/Macros/MacroSteps.h" // for MACRO_ACTION_END, MACRO_ACTION_STEP_E...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,7 +17,7 @@
#include "kaleidoscope/plugin/DynamicTapDance.h" #include "kaleidoscope/plugin/DynamicTapDance.h"
#include <Arduino.h> // for PSTR, F, __FlashStrin... #include <Arduino.h> // for PSTR, F, __FlashStringHelper, strcmp_P
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
@ -25,11 +25,11 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED
#include "kaleidoscope/plugin/TapDance.h" // for TapDance, TapDance::A... #include "kaleidoscope/plugin/TapDance.h" // for TapDance, TapDance::ActionType, TapDance:...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -18,7 +18,7 @@
#pragma once #pragma once
#include <Kaleidoscope-Ranges.h> // for TD_FIRST, TD_LAST #include <Kaleidoscope-Ranges.h> // for TD_FIRST, TD_LAST
#include <Kaleidoscope-TapDance.h> // for TapDance, TapDance::A... #include <Kaleidoscope-TapDance.h> // for TapDance, TapDance::ActionType
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr

@ -25,10 +25,10 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device, Base<>::Storage #include "kaleidoscope/device/device.h" // for Device, Base<>::Storage, VirtualProps::St...
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::E...
#include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1 #include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1, Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, keyTogg... #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, keyToggledOff
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
namespace kaleidoscope { namespace kaleidoscope {

@ -17,17 +17,17 @@
#include "kaleidoscope/plugin/EEPROM-Keymap.h" #include "kaleidoscope/plugin/EEPROM-Keymap.h"
#include <Arduino.h> // for PSTR, strcmp_P, F #include <Arduino.h> // for PSTR, strcmp_P, F, __FlashStringHelper
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Device, Base<>::St...
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey
#include "kaleidoscope/layers.h" // for Layer_, Layer, layer_... #include "kaleidoscope/layers.h" // for Layer_, Layer, layer_count
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,15 +17,15 @@
#include "kaleidoscope/plugin/EEPROM-Settings.h" #include "kaleidoscope/plugin/EEPROM-Settings.h"
#include <Arduino.h> // for PSTR, strcmp_P, F #include <Arduino.h> // for PSTR, strcmp_P, F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::S... #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerRes...
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_, layer_count
#include "kaleidoscope/plugin/EEPROM-Settings/crc.h" // for CRCCalculator #include "kaleidoscope/plugin/EEPROM-Settings/crc.h" // for CRCCalculator, CRC_
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,14 +17,14 @@
#include "kaleidoscope/plugin/Escape-OneShot.h" // IWYU pragma: associated #include "kaleidoscope/plugin/Escape-OneShot.h" // IWYU pragma: associated
#include <Arduino.h> // for PSTR, F, __FlashStrin... #include <Arduino.h> // for PSTR, F, __FlashStringHelper, strcmp_P
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t #include <stdint.h> // for uint16_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
namespace kaleidoscope { namespace kaleidoscope {

@ -20,9 +20,9 @@
#include <Kaleidoscope-OneShot.h> // for OneShot #include <Kaleidoscope-OneShot.h> // for OneShot
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::E...
#include "kaleidoscope/key_defs.h" // for Key, Key_Escape, Key_... #include "kaleidoscope/key_defs.h" // for Key, Key_Escape, Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyTog... #include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyToggledOn
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,7 +17,7 @@
#include "kaleidoscope/plugin/FingerPainter.h" #include "kaleidoscope/plugin/FingerPainter.h"
#include <Arduino.h> // for PSTR, strcmp_P, F #include <Arduino.h> // for PSTR, strcmp_P, F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-LED-Palette-Theme.h> // for LEDPaletteTheme #include <Kaleidoscope-LED-Palette-Theme.h> // for LEDPaletteTheme
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
@ -26,8 +26,8 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device, cRGB, Virtual... #include "kaleidoscope/device/device.h" // for Device, cRGB, VirtualProps::Storage, Base...
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff
namespace kaleidoscope { namespace kaleidoscope {

@ -17,13 +17,13 @@
#include "kaleidoscope/plugin/FocusSerial.h" #include "kaleidoscope/plugin/FocusSerial.h"
#include <Arduino.h> // for __FlashStringHelper, F #include <Arduino.h> // for PSTR, __FlashStringHelper, F, strcmp_P
#include <HardwareSerial.h> // for HardwareSerial #include <HardwareSerial.h> // for HardwareSerial
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include <string.h> // for memset #include <string.h> // for memset
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/hooks.h" // for Hooks #include "kaleidoscope/hooks.h" // for Hooks
#ifdef __AVR__ #ifdef __AVR__

@ -17,16 +17,18 @@
#pragma once #pragma once
#include <Arduino.h> // for __FlashStringHelper #include <Arduino.h> // for delayMicroseconds
#include <HardwareSerial.h> // for HardwareSerial #include <HardwareSerial.h> // for HardwareSerial
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
// IWYU pragma: no_include "WString.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {
class FocusSerial : public kaleidoscope::Plugin { class FocusSerial : public kaleidoscope::Plugin {

@ -22,7 +22,7 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED
#include "kaleidoscope/progmem_helpers.h" // for loadFromProgmem #include "kaleidoscope/progmem_helpers.h" // for loadFromProgmem

@ -22,10 +22,10 @@
#include <Arduino.h> #include <Arduino.h>
#include "kaleidoscope/device/Base.h" #include "kaleidoscope/device/Base.h"
#include "kaleidoscope/driver/hid/Keyboardio.h"
#include "kaleidoscope/driver/storage/GD32Flash.h"
#include "kaleidoscope/driver/bootloader/gd32/Base.h" #include "kaleidoscope/driver/bootloader/gd32/Base.h"
#include "kaleidoscope/driver/hid/Keyboardio.h"
#include "kaleidoscope/driver/mcu/GD32.h" #include "kaleidoscope/driver/mcu/GD32.h"
#include "kaleidoscope/driver/storage/GD32Flash.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace device { namespace device {

@ -19,11 +19,10 @@
#include "kaleidoscope/device/keyboardio/Model01.h" #include "kaleidoscope/device/keyboardio/Model01.h"
// System headers
#include <stdint.h> // for uint8_t
// Arduino headers // Arduino headers
#include <Arduino.h> // for PROGMEM #include <Arduino.h> // for PROGMEM
// System headers
#include <stdint.h> // for uint8_t
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD #ifndef KALEIDOSCOPE_VIRTUAL_BUILD
#include <KeyboardioHID.h> #include <KeyboardioHID.h>
@ -32,9 +31,10 @@
// Kaleidoscope headers // Kaleidoscope headers
#include "kaleidoscope/driver/keyscanner/Base_Impl.h" // IWYU pragma: keep #include "kaleidoscope/driver/keyscanner/Base_Impl.h" // IWYU pragma: keep
// IWYU pragma: no_include "kaleidoscope/device/device.h"
// Kaleidoscope-Hardware-Keyboardio-Model01 headers // Kaleidoscope-Hardware-Keyboardio-Model01 headers
#include "kaleidoscope/driver/keyboardio/Model01Side.h" #include "kaleidoscope/driver/keyboardio/Model01Side.h" // IWYU pragma: keep
namespace kaleidoscope { namespace kaleidoscope {
namespace device { namespace device {

@ -21,14 +21,16 @@
#ifdef ARDUINO_AVR_MODEL01 #ifdef ARDUINO_AVR_MODEL01
// System headers
#include <stdint.h> // for uint8_t
// Arduino headers // Arduino headers
#include <Arduino.h> // for PROGMEM #include <Arduino.h> // for PROGMEM
// System headers
#include <stdint.h> // for uint8_t
#include "kaleidoscope/MatrixAddr.h" // IWYU pragma: keep
// Kaleidoscope headers // Kaleidoscope headers
#include "kaleidoscope/MatrixAddr.h" // for MatrixAddr #include "kaleidoscope/macro_helpers.h" // for RESTRICT_ARGS_COUNT
#include "kaleidoscope/macro_helpers.h" // for RESTRICT_AR...
// IWYU pragma: no_include "kaleidoscope/KeyAddr.h"
#define CRGB(r, g, b) \ #define CRGB(r, g, b) \
(cRGB) { b, g, r } (cRGB) { b, g, r }
@ -39,13 +41,12 @@ struct cRGB {
uint8_t r; uint8_t r;
}; };
#include "kaleidoscope/device/ATmega32U4Keyboard.h" // for ATmega32U4K... #include "kaleidoscope/device/ATmega32U4Keyboard.h" // for ATmega32U4KeyboardProps, EXPORT...
#include "kaleidoscope/driver/bootloader/avr/Caterina.h" // for Caterina #include "kaleidoscope/driver/bootloader/avr/Caterina.h" // for Caterina
#include "kaleidoscope/driver/keyscanner/Base.h" // for BaseProps
#include "kaleidoscope/driver/led/Base.h" // for BaseProps
// Kaleidoscope-Hardware-Keyboardio-Model01 headers // Kaleidoscope-Hardware-Keyboardio-Model01 headers
#include "kaleidoscope/driver/keyboardio/Model01Side.h" // for keydata_t #include "kaleidoscope/driver/keyboardio/Model01Side.h" // for keydata_t
#include "kaleidoscope/driver/keyscanner/Base.h" // for BaseProps
#include "kaleidoscope/driver/led/Base.h" // for BaseProps
namespace kaleidoscope { namespace kaleidoscope {
namespace device { namespace device {

@ -42,8 +42,8 @@ struct cRGB {
#include "kaleidoscope/driver/keyboardio/Model100Side.h" #include "kaleidoscope/driver/keyboardio/Model100Side.h"
#include "kaleidoscope/driver/keyscanner/Base.h" #include "kaleidoscope/driver/keyscanner/Base.h"
#include "kaleidoscope/driver/led/Base.h" #include "kaleidoscope/driver/led/Base.h"
#include "kaleidoscope/driver/storage/GD32Flash.h"
#include "kaleidoscope/driver/mcu/GD32.h" #include "kaleidoscope/driver/mcu/GD32.h"
#include "kaleidoscope/driver/storage/GD32Flash.h"
namespace kaleidoscope { namespace kaleidoscope {

@ -17,4 +17,4 @@
#pragma once #pragma once
#include "Kaleidoscope-Hardware-Keyboardio-Model01.h" #include "Kaleidoscope-Hardware-Keyboardio-Model01.h" // IWYU pragma: keep

@ -18,9 +18,9 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device, cRGB #include "kaleidoscope/device/device.h" // for Device, cRGB, CRGB, Base<>::HID
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb

@ -18,14 +18,14 @@
#include "kaleidoscope/plugin/Heatmap.h" #include "kaleidoscope/plugin/Heatmap.h"
#include <Arduino.h> // for pgm_read_byte, PROGMEM #include <Arduino.h> // for pgm_read_byte, PROGMEM
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, INT16_MAX
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAdd... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range, KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyTog... #include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyToggledOn
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -17,16 +17,16 @@
#pragma once #pragma once
#include <stdint.h> // for uint16_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Run... #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB, Device #include "kaleidoscope/device/device.h" // for cRGB, Device
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -21,7 +21,7 @@
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/plugin/HostOS.h" // for HostOS, Type #include "kaleidoscope/plugin/HostOS.h" // for HostOS, Type
namespace kaleidoscope { namespace kaleidoscope {

@ -20,8 +20,8 @@
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -20,7 +20,7 @@
#include <Arduino.h> // IWYU pragma: keep #include <Arduino.h> // IWYU pragma: keep
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
// This is a terrible hack until Arduino#6964 gets implemented. // This is a terrible hack until Arduino#6964 gets implemented.
// It makes the `_usbSuspendState` symbol available to us. // It makes the `_usbSuspendState` symbol available to us.

@ -18,15 +18,15 @@
#include "kaleidoscope/plugin/IdleLEDs.h" #include "kaleidoscope/plugin/IdleLEDs.h"
#include <Arduino.h> // for F, PSTR, __FlashStrin... #include <Arduino.h> // for F, PSTR, __FlashStringHelper, strcmp_P
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint32_t, uint16_t #include <stdint.h> // for uint32_t, uint16_t
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -22,7 +22,7 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl

@ -19,11 +19,11 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -20,13 +20,13 @@
#include <Kaleidoscope-OneShot.h> // for OneShot #include <Kaleidoscope-OneShot.h> // for OneShot
#include <Kaleidoscope-OneShotMetaKeys.h> // for OneShot_ActiveStickyKey #include <Kaleidoscope-OneShotMetaKeys.h> // for OneShot_ActiveStickyKey
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield, KeyA... #include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield, KeyAddrBitfield::Iterator
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/device/device.h" // for CRGB, cRGB #include "kaleidoscope/device/device.h" // for CRGB, cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_Inactive #include "kaleidoscope/key_defs.h" // for Key, Key_Inactive, Key_Masked
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl

@ -17,17 +17,16 @@
#include "kaleidoscope/plugin/LED-AlphaSquare.h" #include "kaleidoscope/plugin/LED-AlphaSquare.h"
#include <Arduino.h> // for bitRead #include <Arduino.h> // for bitRead, pgm_read_word, PROGMEM
#include <stdint.h> // for uint16_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/key_defs.h" // for Key, Key_A #include "kaleidoscope/key_defs.h" // for Key, Key_A, Key_0
#include "kaleidoscope/plugin/LED-AlphaSquare/Font-4x4.h" // for ALPHASQUARE_SYMBOL_0, ALPHASQU...
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LED-AlphaSquare/Font-4x4.h" // for ALPHASQUAR...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -20,11 +20,10 @@
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
struct cRGB;
// clang-format off // clang-format off
#define SYM4x4( \ #define SYM4x4( \
p00, p01, p02, p03, \ p00, p01, p02, p03, \

@ -23,12 +23,11 @@
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device, CRGB #include "kaleidoscope/device/device.h" // for Device, CRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey, Key_0 #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey, Key_0, Key_A
#include "kaleidoscope/keyswitch_state.h" // for keyIsInjected #include "kaleidoscope/keyswitch_state.h" // for keyIsInjected
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LED-AlphaSquare.h" // for AlphaSquare #include "kaleidoscope/plugin/LED-AlphaSquare.h" // for AlphaSquare
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -21,12 +21,12 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -24,9 +24,8 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/Base.h" // for Base<>::Storage #include "kaleidoscope/device/device.h" // for cRGB, VirtualProps::Storage, Device, Base...
#include "kaleidoscope/device/device.h" // for cRGB, VirtualProps::S... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -18,13 +18,13 @@
#include "kaleidoscope/plugin/LED-Stalker.h" #include "kaleidoscope/plugin/LED-Stalker.h"
#include <Arduino.h> // for min #include <Arduino.h> // for min
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t, uint32_t
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, Key... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, KeyAddr, MatrixAddr<>::...
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB, CRGB #include "kaleidoscope/device/device.h" // for cRGB, CRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerRes...
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb

@ -17,16 +17,16 @@
#pragma once #pragma once
#include <stdint.h> // for uint8_t, uin... #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Run... #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB, CRGB #include "kaleidoscope/device/device.h" // for cRGB, CRGB, Device
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
#define STALKER(v, ...) ({static kaleidoscope::plugin::stalker::v _effect __VA_ARGS__; &_effect; }) #define STALKER(v, ...) ({static kaleidoscope::plugin::stalker::v _effect __VA_ARGS__; &_effect; })

@ -20,14 +20,14 @@
#include "kaleidoscope/plugin/LED-Wavepool.h" #include "kaleidoscope/plugin/LED-Wavepool.h"
#include <Arduino.h> // for pgm_read_byte #include <Arduino.h> // for pgm_read_byte, PROGMEM, abs
#include <stdint.h> // for int8_t, uint8_t #include <stdint.h> // for int8_t, uint8_t, int16_t, intptr_t
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, Key... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, KeyAddr, MatrixAddr<>::...
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device, cRGB #include "kaleidoscope/device/device.h" // for Device, cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerRes...
#include "kaleidoscope/keyswitch_state.h" // for keyIsPressed #include "kaleidoscope/keyswitch_state.h" // for keyIsPressed
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb

@ -21,16 +21,16 @@
#ifdef ARDUINO_AVR_MODEL01 #ifdef ARDUINO_AVR_MODEL01
#include <Arduino.h> // for PROGMEM #include <Arduino.h> // for PROGMEM
#include <stdint.h> // for uint8_t, int... #include <stdint.h> // for uint8_t, int16_t, int8_t, INT16_MAX
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Run... #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device #include "kaleidoscope/device/device.h" // for Device
#include "kaleidoscope/event_handler_result.h" // for EventHandler... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
#include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransi... #include "kaleidoscope/plugin/AccessTransientLEDMode.h" // for AccessTransientLEDMode
#include "kaleidoscope/plugin/LEDMode.h" // for LEDMode #include "kaleidoscope/plugin/LEDMode.h" // for LEDMode
#include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInter... #include "kaleidoscope/plugin/LEDModeInterface.h" // for LEDModeInterface
#define WP_WID 14 #define WP_WID 14
#define WP_HGT 5 #define WP_HGT 5

@ -20,11 +20,11 @@
#include <Arduino.h> // for PROGMEM, pgm_read_byte #include <Arduino.h> // for PROGMEM, pgm_read_byte
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for CRGB, cRGB #include "kaleidoscope/device/device.h" // for CRGB, cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_O, Key_A, Key_B #include "kaleidoscope/key_defs.h" // for Key, Key_O, Key_A, Key_B, Key_D, Key_E
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl

@ -19,13 +19,13 @@
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, Matrix... #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::...
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerRes...
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl, Key... #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl, Key_LEDEffectNext
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for breath_compute #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for breath_compute
namespace kaleidoscope { namespace kaleidoscope {

@ -19,7 +19,7 @@
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for CRGB, Device, Base<>::LE... #include "kaleidoscope/device/device.h" // for CRGB, Device, Base<>::LEDRangeIterator
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -16,7 +16,7 @@
#pragma once #pragma once
#include <stdint.h> // for uint8_t, int8_t #include <stdint.h> // for uint8_t, int8_t, uint16_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin

@ -20,7 +20,7 @@
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>::LEDRang... #include "kaleidoscope/device/device.h" // for Base<>::LEDRangeIterator, Base<>::L...
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for hsvToRgb

@ -17,9 +17,9 @@
#include "kaleidoscope/plugin/TriColor.h" #include "kaleidoscope/plugin/TriColor.h"
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, Mat... #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/device/device.h" // for cRGB #include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_A, Key_E... #include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_A, Key_Escape, Key_F1, Key_F12
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl

@ -18,11 +18,11 @@
#include "kaleidoscope/plugin/LayerFocus.h" #include "kaleidoscope/plugin/LayerFocus.h"
#include <Arduino.h> // for PSTR, strcmp_P, F #include <Arduino.h> // for PSTR, strcmp_P, F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
namespace kaleidoscope { namespace kaleidoscope {

@ -17,16 +17,16 @@
#include "kaleidoscope/plugin/Leader.h" #include "kaleidoscope/plugin/Leader.h"
#include <Arduino.h> // for F, __FlashStringHelper #include <Arduino.h> // for F, __FlashStringHelper, pgm_read_ptr
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for LEAD_FIRST, LEAD_LAST #include <Kaleidoscope-Ranges.h> // for LEAD_FIRST, LEAD_LAST
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, int8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for INJECTED, keyToggledOff

@ -19,14 +19,13 @@
#include <Kaleidoscope-Ranges.h> // for LEAD_FIRST #include <Kaleidoscope-Ranges.h> // for LEAD_FIRST
#include <stddef.h> // for NULL #include <stddef.h> // for NULL
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, int8_t
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Deprecation warning messages // Deprecation warning messages
#include "kaleidoscope_internal/deprecations.h" // for DEPRECATED #include "kaleidoscope_internal/deprecations.h" // for DEPRECATED

@ -16,7 +16,7 @@
#include "kaleidoscope/plugin/Macros.h" #include "kaleidoscope/plugin/Macros.h"
#include <Arduino.h> // for pgm_read_byte, delay #include <Arduino.h> // for pgm_read_byte, delay, F, PROGMEM, __F...
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for MACRO_FIRST #include <Kaleidoscope-Ranges.h> // for MACRO_FIRST
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
@ -24,10 +24,10 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResul...
#include "kaleidoscope/key_defs.h" // for Key, LSHIFT, Key_... #include "kaleidoscope/key_defs.h" // for Key, LSHIFT, Key_NoKey, Key_0, Key_1
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED, WAS_PRESSED
#include "kaleidoscope/plugin/Macros/MacroSteps.h" // for macro_t, MACRO_NONE #include "kaleidoscope/plugin/Macros/MacroSteps.h" // for macro_t, MACRO_NONE, MACRO_ACTION_END
// ============================================================================= // =============================================================================
// Default `macroAction()` function definitions // Default `macroAction()` function definitions

@ -18,7 +18,7 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "Kaleidoscope-Ranges.h" // for MACRO_FIRST, MACR... #include "Kaleidoscope-Ranges.h" // for MACRO_FIRST, MACRO_LAST
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key

@ -17,13 +17,13 @@
#include "kaleidoscope/plugin/MagicCombo.h" #include "kaleidoscope/plugin/MagicCombo.h"
#include <Arduino.h> // for F, __FlashStringHelper #include <Arduino.h> // for F, __FlashStringHelper, pgm_read_byte
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, int8_t, uin... #include <stdint.h> // for uint16_t, int8_t, uint8_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Device #include "kaleidoscope/device/device.h" // for Device
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -18,7 +18,7 @@
#pragma once #pragma once
#include <Arduino.h> // for PROGMEM #include <Arduino.h> // for PROGMEM
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, int8_t
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin

@ -16,20 +16,20 @@
#include "kaleidoscope/plugin/MouseKeys.h" #include "kaleidoscope/plugin/MouseKeys.h"
#include <Arduino.h> // for F, __F... #include <Arduino.h> // for F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t, uint16_t, int8_t
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>... #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:...
#include "kaleidoscope/driver/hid/keyboardio/AbsoluteMouse.h" // for Absolu... #include "kaleidoscope/driver/hid/keyboardio/AbsoluteMouse.h" // for AbsoluteMouse
#include "kaleidoscope/driver/hid/keyboardio/Mouse.h" // for Mouse #include "kaleidoscope/driver/hid/keyboardio/Mouse.h" // for Mouse
#include "kaleidoscope/event_handler_result.h" // for EventH... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventH...
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key, SYNTHETIC
#include "kaleidoscope/keyswitch_state.h" // for keyTog... #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn
#include "kaleidoscope/plugin/mousekeys/MouseKeyDefs.h" // for KEY_MO... #include "kaleidoscope/plugin/mousekeys/MouseKeyDefs.h" // for KEY_MOUSE_BUTTON, KEY_MOUS...
#include "kaleidoscope/plugin/mousekeys/MouseWrapper.h" // for MouseW... #include "kaleidoscope/plugin/mousekeys/MouseWrapper.h" // for MouseWrapper, wrapper, WAR...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -16,13 +16,13 @@
#include "kaleidoscope/plugin/mousekeys/MouseWrapper.h" #include "kaleidoscope/plugin/mousekeys/MouseWrapper.h"
#include <stdint.h> // for uint16_t #include <stdint.h> // for uint16_t, uint8_t, int8_t
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>... #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps:...
#include "kaleidoscope/driver/hid/keyboardio/AbsoluteMouse.h" // for Absolu... #include "kaleidoscope/driver/hid/keyboardio/AbsoluteMouse.h" // for AbsoluteMouse
#include "kaleidoscope/driver/hid/keyboardio/Mouse.h" // for Mouse #include "kaleidoscope/driver/hid/keyboardio/Mouse.h" // for Mouse
#include "kaleidoscope/plugin/mousekeys/MouseWarpModes.h" // for MOUSE_... #include "kaleidoscope/plugin/mousekeys/MouseWarpModes.h" // for MOUSE_WARP_GRID_2X2
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -18,10 +18,10 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, Matrix... #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr<>::...
#include "kaleidoscope/device/device.h" // for cRGB, CRGB #include "kaleidoscope/device/device.h" // for cRGB, CRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerRes...
#include "kaleidoscope/key_defs.h" // for Key, KEY_FLAGS #include "kaleidoscope/key_defs.h" // for Key, KEY_FLAGS, Key_NoKey, LockLayer
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for breath_compute #include "kaleidoscope/plugin/LEDControl/LEDUtils.h" // for breath_compute

@ -19,11 +19,10 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/device/device.h" // for cRGB
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
struct cRGB;
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,18 +17,18 @@
#include "kaleidoscope/plugin/OneShot.h" #include "kaleidoscope/plugin/OneShot.h"
#include <Arduino.h> // for bitRead, F, __FlashSt... #include <Arduino.h> // for bitRead, F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for OS_FIRST #include <Kaleidoscope-Ranges.h> // for OS_FIRST
#include <stdint.h> // for uint8_t, int8_t #include <stdint.h> // for uint8_t, int8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr
#include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield, KeyA... #include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield, KeyAddrBitfield::Iterator
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_LeftControl #include "kaleidoscope/key_defs.h" // for Key, Key_LeftControl, LAYER_SHIFT_OFFSET
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for INJECTED, IS_PRESSED, WAS_PRESSED, keyIsI...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -17,17 +17,19 @@
#pragma once #pragma once
#include <Kaleidoscope-Ranges.h> // for OS_FIRST, OS_LAST #include <Kaleidoscope-Ranges.h> // for OSL_FIRST, OSM_FIRST, OS_FIRST, OS_LAST
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, int16_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield #include "kaleidoscope/KeyAddrBitfield.h" // for KeyAddrBitfield
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
#include "kaleidoscope/key_defs.h" // for Key, Key_LeftControl #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
// IWYU pragma: no_include "HIDAliases.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Keymap macros // Keymap macros

@ -21,13 +21,13 @@
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-OneShot.h> // for OneShot #include <Kaleidoscope-OneShot.h> // for OneShot
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAdd... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range, KeyAddr
#include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<>::Iterator #include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<>::Iterator, KeyAddrMap
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyMap.h" // for KeyMap #include "kaleidoscope/KeyMap.h" // for KeyMap
#include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_Inactive #include "kaleidoscope/key_defs.h" // for Key, Key_Inactive, Key_Masked
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for INJECTED, keyToggledOff
namespace kaleidoscope { namespace kaleidoscope {

@ -17,7 +17,7 @@
#pragma once #pragma once
#include <Kaleidoscope-Ranges.h> // for OS_ACTIVE_STICKY, OS_... #include <Kaleidoscope-Ranges.h> // for OS_ACTIVE_STICKY, OS_META_STICKY
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult

@ -22,8 +22,8 @@
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -20,13 +20,13 @@
#include <Arduino.h> // for F, __FlashStringHelper #include <Arduino.h> // for F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <Kaleidoscope-Ranges.h> // for DUL_FIRST, DUM_FIRST #include <Kaleidoscope-Ranges.h> // for DUL_FIRST, DUM_FIRST, DUL_LAST, DUM_LAST
#include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue #include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED, keyIsInjected
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
#include "kaleidoscope/progmem_helpers.h" // for cloneFromProgmem #include "kaleidoscope/progmem_helpers.h" // for cloneFromProgmem

@ -19,8 +19,8 @@
#pragma once #pragma once
#include <Arduino.h> // for PROGMEM #include <Arduino.h> // for PROGMEM
#include <Kaleidoscope-Ranges.h> // for DUM_FIRST #include <Kaleidoscope-Ranges.h> // for DUL_FIRST, DUM_FIRST
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t, int8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue #include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue
@ -30,6 +30,8 @@
#include "kaleidoscope/key_defs.h" // for Key, Key_Transparent #include "kaleidoscope/key_defs.h" // for Key, Key_Transparent
#include "kaleidoscope/plugin.h" // for Plugin #include "kaleidoscope/plugin.h" // for Plugin
// IWYU pragma: no_include "HIDAliases.h"
// DualUse Key definitions for Qukeys in the keymap // DualUse Key definitions for Qukeys in the keymap
#define MT(mod, key) kaleidoscope::plugin::ModTapKey(Key_##mod, Key_##key) #define MT(mod, key) kaleidoscope::plugin::ModTapKey(Key_##mod, Key_##key)

@ -21,8 +21,8 @@
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1, Key_A #include "kaleidoscope/key_defs.h" // for Key, Key_0, Key_1, Key_A, Key_Z
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn
namespace kaleidoscope { namespace kaleidoscope {

@ -19,10 +19,10 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAdd... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range, KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_NoKey #include "kaleidoscope/key_defs.h" // for Key, Key_NoKey
namespace kaleidoscope { namespace kaleidoscope {

@ -20,16 +20,16 @@
#include <Arduino.h> // for F, __FlashStringHelper #include <Arduino.h> // for F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t, int8_t, uin... #include <stdint.h> // for uint16_t, int8_t, uint8_t
#include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr
#include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue #include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_LeftParen #include "kaleidoscope/key_defs.h" // for Key, Key_LeftParen, Key_LeftShift, Key_Ri...
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, WAS_PRE... #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn, WAS_PRESSED, keyIsInjected
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -19,7 +19,7 @@
#pragma once #pragma once
#include <Kaleidoscope-Ranges.h> // for SC_FIRST, SC_LAST #include <Kaleidoscope-Ranges.h> // for SC_FIRST, SC_LAST
#include <stdint.h> // for uint16_t, uint8_t #include <stdint.h> // for uint16_t, uint8_t, int8_t
#include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue #include "kaleidoscope/KeyAddrEventQueue.h" // for KeyAddrEventQueue
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent

@ -25,7 +25,7 @@
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::E...
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOn #include "kaleidoscope/keyswitch_state.h" // for keyToggledOn

@ -24,9 +24,9 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_Backspace #include "kaleidoscope/key_defs.h" // for Key, Key_Backspace, Key_1, Key_A, Key_0
#include "kaleidoscope/keyswitch_state.h" // for INJECTED, WAS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for INJECTED, WAS_PRESSED, keyToggledOn, IS_P...
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -27,9 +27,9 @@
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker #include "kaleidoscope/KeyEventTracker.h" // for KeyEventTracker
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyTog... #include "kaleidoscope/keyswitch_state.h" // for keyIsInjected, keyToggledOff
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
namespace kaleidoscope { namespace kaleidoscope {

@ -19,14 +19,14 @@
#include <Kaleidoscope-Ranges.h> // for TT_FIRST #include <Kaleidoscope-Ranges.h> // for TT_FIRST
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr...
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/LiveKeys.h" // for LiveKeys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>::HID #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/event_handler_result.h" // for EventHandle... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandle...
#include "kaleidoscope/key_defs.h" // for Key, Key_Le... #include "kaleidoscope/key_defs.h" // for Key, Key_LeftShift, Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff
namespace kaleidoscope { namespace kaleidoscope {

@ -17,20 +17,20 @@
#include "kaleidoscope/plugin/Turbo.h" #include "kaleidoscope/plugin/Turbo.h"
#include <Arduino.h> // for F, __FlashS... #include <Arduino.h> // for F, __FlashStringHelper
#include <Kaleidoscope-FocusSerial.h> // for Focus, Focu... #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint16_t #include <stdint.h> // for uint16_t, uint32_t
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr<>::Range
#include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<... #include "kaleidoscope/KeyAddrMap.h" // for KeyAddrMap<>::Iterator, KeyAddrMap
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/KeyMap.h" // for KeyMap #include "kaleidoscope/KeyMap.h" // for KeyMap
#include "kaleidoscope/LiveKeys.h" // for LiveKeys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/event_handler_result.h" // for EventHandle... #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandle...
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff, keyToggledOn
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl #include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
namespace kaleidoscope { namespace kaleidoscope {

@ -17,7 +17,7 @@
#include "kaleidoscope/plugin/TypingBreaks.h" #include "kaleidoscope/plugin/TypingBreaks.h"
#include <Arduino.h> // for PSTR, strcmp_P, F #include <Arduino.h> // for PSTR, strcmp_P, F, __FlashStringHelper
#include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings #include <Kaleidoscope-EEPROM-Settings.h> // for EEPROMSettings
#include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial #include <Kaleidoscope-FocusSerial.h> // for Focus, FocusSerial
#include <stdint.h> // for uint32_t, uint16_t #include <stdint.h> // for uint32_t, uint16_t
@ -25,8 +25,8 @@
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for VirtualProps::Storage #include "kaleidoscope/device/device.h" // for VirtualProps::Storage, Base<>::Storage
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff
namespace kaleidoscope { namespace kaleidoscope {

@ -20,8 +20,8 @@
#include <Arduino.h> // for delay #include <Arduino.h> // for delay
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>::HID #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
namespace kaleidoscope { namespace kaleidoscope {

@ -18,13 +18,13 @@
#include "kaleidoscope/plugin/Unicode.h" #include "kaleidoscope/plugin/Unicode.h"
#include <Arduino.h> // for delay #include <Arduino.h> // for delay
#include <Kaleidoscope-HostOS.h> // for HostOS, LINUX #include <Kaleidoscope-HostOS.h> // for HostOS, LINUX, MACOS, WINDOWS, OSX
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t, uint32_t, int8_t
#include "kaleidoscope/Runtime.h" // for Runtime #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/device/device.h" // for Base<>::HID #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/key_defs.h" // for Key, Key_Le... #include "kaleidoscope/key_defs.h" // for Key, Key_LeftAlt, KEY_FLAGS, Key_A
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -18,8 +18,8 @@
#include "kaleidoscope/plugin/WinKeyToggle.h" #include "kaleidoscope/plugin/WinKeyToggle.h"
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult #include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/key_defs.h" // for Key, Key_LeftGui, Key... #include "kaleidoscope/key_defs.h" // for Key, Key_LeftGui, Key_RightGui
namespace kaleidoscope { namespace kaleidoscope {
namespace plugin { namespace plugin {

@ -25,7 +25,7 @@
#include "kaleidoscope/KeyEvent.h" // for KeyEvent, KeyEventId #include "kaleidoscope/KeyEvent.h" // for KeyEvent, KeyEventId
#include "kaleidoscope/Runtime.h" // for Runtime, Runtime_ #include "kaleidoscope/Runtime.h" // for Runtime, Runtime_
#include "kaleidoscope/key_defs.h" // for Key_Undefined #include "kaleidoscope/key_defs.h" // for Key_Undefined
#include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED #include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED, keyToggledOff
namespace kaleidoscope { namespace kaleidoscope {

@ -64,6 +64,7 @@ class KeyAddrMap {
// for (Key &key : key_map) {...} // for (Key &key : key_map) {...}
private: private:
class Iterator; class Iterator;
friend class ThisType::Iterator; friend class ThisType::Iterator;
public: public:

@ -19,12 +19,12 @@
#include <Arduino.h> // for millis #include <Arduino.h> // for millis
#include <HardwareSerial.h> // for HardwareSerial #include <HardwareSerial.h> // for HardwareSerial
#include "kaleidoscope/KeyAddr.h" // for KeyAddr #include "kaleidoscope/KeyAddr.h" // for KeyAddr, MatrixAddr, MatrixAddr...
#include "kaleidoscope/KeyEvent.h" // for KeyEvent #include "kaleidoscope/KeyEvent.h" // for KeyEvent
#include "kaleidoscope/LiveKeys.h" // for LiveKeys #include "kaleidoscope/LiveKeys.h" // for LiveKeys, live_keys
#include "kaleidoscope/device/device.h" // for Base<>::HID #include "kaleidoscope/device/device.h" // for Base<>::HID, VirtualProps::HID
#include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard
#include "kaleidoscope/keyswitch_state.h" // for keyToggledOff #include "kaleidoscope/keyswitch_state.h" // for keyToggledOff, keyToggledOn
#include "kaleidoscope/layers.h" // for Layer, Layer_ #include "kaleidoscope/layers.h" // for Layer, Layer_
namespace kaleidoscope { namespace kaleidoscope {

@ -20,11 +20,11 @@
#if defined(__AVR__) || defined(KALEIDOSCOPE_VIRTUAL_BUILD) #if defined(__AVR__) || defined(KALEIDOSCOPE_VIRTUAL_BUILD)
// IWYU pragma: begin_exports // IWYU pragma: begin_exports
#include "kaleidoscope/device/Base.h" // for BaseP... #include "kaleidoscope/device/Base.h" // for BaseProps
#include "kaleidoscope/driver/hid/Keyboardio.h" // for Keybo... #include "kaleidoscope/driver/hid/Keyboardio.h" // for Keyboardio, KeyboardioProps
#include "kaleidoscope/driver/mcu/ATmega32U4.h" // for ATmeg... #include "kaleidoscope/driver/mcu/ATmega32U4.h" // for ATmega32U4, ATmega32U4Props
#include "kaleidoscope/driver/storage/ATmega32U4EEPROMProps.h" // for ATmeg... #include "kaleidoscope/driver/storage/ATmega32U4EEPROMProps.h" // for ATmega32U4EEPROMProps
#include "kaleidoscope/driver/storage/AVREEPROM.h" // for AVREE... #include "kaleidoscope/driver/storage/AVREEPROM.h" // for AVREEPROM
// IWYU pragma: end_exports // IWYU pragma: end_exports
namespace kaleidoscope { namespace kaleidoscope {
@ -48,8 +48,6 @@ class ATmega32U4Keyboard : public kaleidoscope::device::Base<_DeviceProps> {
} }
}; };
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
template<typename _DeviceProps>
class ATmega32U4Keyboard;
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
} // namespace device } // namespace device

@ -23,14 +23,14 @@
#pragma once #pragma once
#include <stdint.h> // for uint8_t, int8_t #include <stdint.h> // for uint8_t, int8_t, uint32_t
#include <string.h> // for size_t, strlen, memcpy #include <string.h> // for size_t, strlen, memcpy
#include "kaleidoscope/driver/bootloader/None.h" // for None #include "kaleidoscope/driver/bootloader/None.h" // for None
#include "kaleidoscope/driver/hid/Base.h" // for Base, BaseProps #include "kaleidoscope/driver/hid/Base.h" // for Base, BaseProps
#include "kaleidoscope/driver/keyscanner/Base.h" // for BaseProps #include "kaleidoscope/driver/keyscanner/Base.h" // for BaseProps
#include "kaleidoscope/driver/keyscanner/None.h" // for None #include "kaleidoscope/driver/keyscanner/None.h" // for None
#include "kaleidoscope/driver/led/None.h" // for cRGB, BaseProps, CRGB #include "kaleidoscope/driver/led/None.h" // for cRGB, BaseProps, CRGB, None
#include "kaleidoscope/driver/mcu/Base.h" // for BaseProps #include "kaleidoscope/driver/mcu/Base.h" // for BaseProps
#include "kaleidoscope/driver/mcu/None.h" // for None #include "kaleidoscope/driver/mcu/None.h" // for None
#include "kaleidoscope/driver/storage/Base.h" // for BaseProps #include "kaleidoscope/driver/storage/Base.h" // for BaseProps

@ -19,8 +19,8 @@
#include "kaleidoscope/device/virtual/DefaultHIDReportConsumer.h" #include "kaleidoscope/device/virtual/DefaultHIDReportConsumer.h"
// From KeyboardioHID: // From KeyboardioHID:
#include <HID-Settings.h> // for HID_REPORTID_NKRO_K... #include <HID-Settings.h> // for HID_REPORTID_NKRO_KEYBOARD
#include <MultiReport/Keyboard.h> // for HID_KeyboardReport_... #include <MultiReport/Keyboard.h> // for HID_KeyboardReport_Data_t, (anonymous u...
// From system: // From system:
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
// From Arduino core: // From Arduino core:
@ -32,8 +32,8 @@
#undef min #undef min
#undef max #undef max
#include <sstream> // for operator<<, strings... #include <sstream> // for operator<<, stringstream, basic_ostream
#include <string> // for char_traits, operator+ #include <string> // for char_traits, operator+, basic_string
namespace kaleidoscope { namespace kaleidoscope {

@ -19,27 +19,23 @@
#include "kaleidoscope/device/virtual/Virtual.h" #include "kaleidoscope/device/virtual/Virtual.h"
// From system:
#include <stdint.h> // for uint8_t, uint16_t
#include <stdlib.h> // for exit, size_t
// From Arduino: // From Arduino:
#include <EEPROM.h> // for EEPROMClass, EERef #include <EEPROM.h> // for EEPROMClass, EERef
#include <virtual_io.h> // for getLineOfInput, isI...
// From KeyboardioHID: // From KeyboardioHID:
#include <HIDReportObserver.h> // for HIDReportObserver #include <HIDReportObserver.h> // for HIDReportObserver
// From system:
#include <stdint.h> // for uint8_t, uint16_t
#include <stdlib.h> // for exit, size_t
#include <virtual_io.h> // for getLineOfInput, isInte...
#include <sstream> // for operator<<, string
#include <string> // for operator==, char_traits
// From Kaleidoscope: // From Kaleidoscope:
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixA... #include "kaleidoscope/KeyAddr.h" // for MatrixAddr, MatrixAddr...
#include "kaleidoscope/device/virtual/DefaultHIDReportConsumer.h" // for DefaultHIDReportCon... #include "kaleidoscope/device/virtual/DefaultHIDReportConsumer.h" // for DefaultHIDReportConsumer
#include "kaleidoscope/device/virtual/Logging.h" // for log_error, logging #include "kaleidoscope/device/virtual/Logging.h" // for log_error, logging
#include "kaleidoscope/key_defs.h" // for Key_NoKey #include "kaleidoscope/key_defs.h" // for Key_NoKey
#include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRE... #include "kaleidoscope/keyswitch_state.h" // for IS_PRESSED, WAS_PRESSED
// These must come after other headers:
#include <sstream> // for operator<<, string
#include <string> // for operator==, char_tr...
// FIXME: This relates to virtual/cores/arduino/EEPROM.h. // FIXME: This relates to virtual/cores/arduino/EEPROM.h.
// EEPROM static data must be defined here as only // EEPROM static data must be defined here as only

@ -22,9 +22,13 @@
// library KeyboardioHID. It replaces all hardware related stuff // library KeyboardioHID. It replaces all hardware related stuff
// with stub implementations. // with stub implementations.
#include <stddef.h> // for NULL
#include <stdint.h> // for uint8_t
// From KeyboardioHID: // From KeyboardioHID:
#include "HID.h" #include "HID.h" // for HID_, HIDSubDescriptor, HID_::(anonymous), HID, HID_REPOR...
#include "HIDReportObserver.h" // for HIDReportObserver #include "HIDReportObserver.h" // for HIDReportObserver
#include "PluggableUSB.h" // for USBSetup, EP_TYPE_INTERRUPT_IN, PluggableUSBModule
#if defined(USBCON) #if defined(USBCON)

@ -18,9 +18,9 @@
#pragma once #pragma once
#include "kaleidoscope/driver/hid/Base.h" // for Base, BaseProps #include "kaleidoscope/driver/hid/Base.h" // for Base, BaseProps
#include "keyboardio/AbsoluteMouse.h" // for AbsoluteMouse, AbsoluteMou... #include "kaleidoscope/driver/hid/keyboardio/AbsoluteMouse.h" // for AbsoluteMouse, AbsoluteMou...
#include "keyboardio/Keyboard.h" // for Keyboard, KeyboardProps #include "kaleidoscope/driver/hid/keyboardio/Keyboard.h" // for Keyboard, KeyboardProps
#include "keyboardio/Mouse.h" // for Mouse, MouseProps #include "kaleidoscope/driver/hid/keyboardio/Mouse.h" // for Mouse, MouseProps
namespace kaleidoscope { namespace kaleidoscope {
namespace driver { namespace driver {

@ -19,7 +19,7 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/key_defs.h" // for Key, Key_LeftAlt, Key_LeftControl #include "kaleidoscope/key_defs.h" // for Key, Key_LeftAlt, Key_LeftControl, Key_LeftGui, Key_L...
#ifndef HID_BOOT_PROTOCOL #ifndef HID_BOOT_PROTOCOL
#define HID_BOOT_PROTOCOL 0 #define HID_BOOT_PROTOCOL 0

@ -17,14 +17,12 @@
#pragma once #pragma once
#include <stdint.h> // for uint8_t, int8_t #include <KeyboardioHID.h> // for SingleAbsoluteMouse_, SingleAbso...
#include <stdint.h> // for uint8_t, int8_t, uint16_t
#include <KeyboardioHID.h> #include "kaleidoscope/driver/hid/base/AbsoluteMouse.h" // for AbsoluteMouse, AbsoluteMouseProps
// From KeyboardioHID:
#include "DeviceAPIs/AbsoluteMouseAPI.hpp" // for AbsoluteMous... // IWYU pragma: no_include "DeviceAPIs/AbsoluteMouseAPI.hpp"
#include "SingleReport/SingleAbsoluteMouse.h" // for SingleAbsolu...
// From Kaleidoscope:
#include "kaleidoscope/driver/hid/base/AbsoluteMouse.h" // for AbsoluteMouse
namespace kaleidoscope { namespace kaleidoscope {
namespace driver { namespace driver {

@ -17,16 +17,11 @@
#pragma once #pragma once
#include <KeyboardioHID.h> // for BootKeyboard, BootKeyboard_, Keyboard
#include <stdint.h> // for uint8_t, uint16_t #include <stdint.h> // for uint8_t, uint16_t
#include <KeyboardioHID.h>
// From KeyboardioHID:
#include "BootKeyboard/BootKeyboard.h" // for BootKeyboard, Boo...
#include "MultiReport/ConsumerControl.h" // for ConsumerControl
#include "MultiReport/Keyboard.h" // for Keyboard, Keyboard_
#include "MultiReport/SystemControl.h" // for SystemControl
// From Kaleidoscope: // From Kaleidoscope:
#include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard, Keyboar... #include "kaleidoscope/driver/hid/base/Keyboard.h" // for Keyboard, KeyboardProps
namespace kaleidoscope { namespace kaleidoscope {
namespace driver { namespace driver {

@ -17,11 +17,9 @@
#pragma once #pragma once
#include <KeyboardioHID.h> // for HID_MouseReport_Data_t, (anonymous union...
#include <stdint.h> // for int8_t, uint8_t #include <stdint.h> // for int8_t, uint8_t
#include <KeyboardioHID.h>
// From KeyboardioHID:
#include "MultiReport/Mouse.h" // for HID_MouseReport_Data_t
// From Kaleidoscope: // From Kaleidoscope:
#include "kaleidoscope/driver/hid/base/Mouse.h" // for Mouse, MouseProps #include "kaleidoscope/driver/hid/base/Mouse.h" // for Mouse, MouseProps

@ -19,9 +19,11 @@
#include <stdint.h> // for uint8_t #include <stdint.h> // for uint8_t
#include "kaleidoscope/MatrixAddr.h" // for MatrixAddr #include "kaleidoscope/MatrixAddr.h" // IWYU pragma: keep
#include "kaleidoscope/key_defs.h" // for Key #include "kaleidoscope/key_defs.h" // for Key
// IWYU pragma: no_include "kaleidoscope/KeyAddr.h"
namespace kaleidoscope { namespace kaleidoscope {
namespace driver { namespace driver {
namespace keyscanner { namespace keyscanner {

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save