diff --git a/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.cpp b/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.cpp index 0aac6057..5f3e74b0 100644 --- a/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.cpp +++ b/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.cpp @@ -1,15 +1,17 @@ /*---------------------------------------------------------*\ -| QMKOpenRGBBaseController.cpp | +| QMKOpenRGBBaseController.cpp | | | -| Base class for QMK keyboards using OpenRGB Protocol | +| Common Driver for OpenRGB QMK Keyboard Protocol | | | -| ChrisM 20th December 2023 | +| ChrisM 20 Dec 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | \*---------------------------------------------------------*/ #include "LogManager.h" #include "RGBControllerKeyNames.h" #include "SettingsManager.h" - #include "QMKOpenRGBBaseController.h" using namespace std::chrono_literals; diff --git a/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.h b/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.h index 61958071..ca1b3880 100644 --- a/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.h +++ b/Controllers/QMKOpenRGBController/QMKOpenRGBBaseController.h @@ -1,9 +1,12 @@ /*---------------------------------------------------------*\ -| QMKOpenRGBBaseController.cpp | +| QMKOpenRGBBaseController.h | | | -| Base class for QMK keyboards using OpenRGB Protocol | +| Common Driver for OpenRGB QMK Keyboard Protocol | | | -| ChrisM 20th December 2023 | +| ChrisM 20 Dec 2023 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | \*---------------------------------------------------------*/ #pragma once @@ -12,7 +15,6 @@ #include "RGBController.h" #include "RGBControllerKeyNames.h" #include "SettingsManager.h" - #include "QMKOpenRGBController.h" typedef std::map qmk_keycodes; diff --git a/Controllers/QMKOpenRGBController/QMKOpenRGBController.h b/Controllers/QMKOpenRGBController/QMKOpenRGBController.h index d0c4c0fb..9e86dc6c 100644 --- a/Controllers/QMKOpenRGBController/QMKOpenRGBController.h +++ b/Controllers/QMKOpenRGBController/QMKOpenRGBController.h @@ -1,20 +1,23 @@ -/*-------------------------------------------------------------------*\ -| QMKOpenRGBController.h | -| | -| Common definitions for QMK OpenRGB Controller | -| | -| Kasper 10th Octobber 2020 | -| Jath03 28th May 2021 | -\*-------------------------------------------------------------------*/ +/*---------------------------------------------------------*\ +| QMKOpenRGBController.h | +| | +| Driver for OpenRGB QMK Keyboard Protocol | +| | +| Kasper 10 Oct 2020 | +| Jath03 28 May 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once +#include +#include +#include #include "ResourceManager.h" #include "RGBController.h" #include "hsv.h" -#include -#include -#include #define QMK_OPENRGB_PACKET_SIZE 65 #define QMK_OPENRGB_HID_READ_TIMEOUT 50 @@ -127,4 +130,4 @@ typedef struct { uint8_t x; uint8_t y; -} point_t; \ No newline at end of file +} point_t; diff --git a/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp b/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp index 3ae2d454..d26b82b4 100644 --- a/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp +++ b/Controllers/QMKOpenRGBController/QMKOpenRGBControllerDetect.cpp @@ -1,15 +1,18 @@ -/*-------------------------------------------------------------------*\ -| QMKOpenRGBControllerDetect.cpp | -| | -| Driver for QMK keyboards using OpenRGB Protocol | -| | -| Kasper 10th Octobber 2020 | -| Jath03 28th May 2021 | -\*-------------------------------------------------------------------*/ +/*---------------------------------------------------------*\ +| QMKOpenRGBControllerDetect.cpp | +| | +| Detector for OpenRGB QMK Keyboard Protocol | +| | +| Kasper 10 Oct 2020 | +| Jath03 28 May 2021 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include #include - +#include #include "Detector.h" #include "QMKOpenRGBRev9Controller.h" #include "QMKOpenRGBRevBController.h" @@ -21,7 +24,6 @@ #include "RGBController_QMKOpenRGBRevE.h" #include "LogManager.h" #include "SettingsManager.h" -#include /*-----------------------------------------------------*\ | Protocol version |