Update file header comments to standardized new format for Cherry, Colorful, and Cooler Master files

This commit is contained in:
Adam Honse 2024-05-12 17:16:31 -05:00
parent 889110961a
commit fc97d6130b
62 changed files with 638 additions and 423 deletions

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| CherryKeyboardController.cpp |
| |
| Driver for Cherry RGB keyboard lighting |
| controller |
| |
| Sebastian Kraus 12/25/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| CherryKeyboardController.cpp |
| |
| Driver for Cherry keyboard |
| |
| Sebastian Kraus 25 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CherryKeyboardController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| CherryKeyboardController.h |
| |
| Definitions and types for Cherry RGB |
| keyboard lighting controller |
| |
| Sebastian Kraus 12/25/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| CherryKeyboardController.h |
| |
| Driver for Cherry keyboard |
| |
| Sebastian Kraus 25 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| CherryKeyboardControllerDetect.cpp |
| |
| Detector for Cherry keyboard |
| |
| Sebastian Kraus 25 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include <hidapi/hidapi.h>
#include "Detector.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_CherryKeyboard.cpp |
| |
| Generic RGB Interface for Cherry RGB |
| Keyboard |
| |
| Sebastian Kraus 12/25/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CherryKeyboard.cpp |
| |
| RGBController for Cherry keyboard |
| |
| Sebastian Kraus 25 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CherryKeyboard.h"
@ -212,7 +214,7 @@ RGBController_CherryKeyboard::RGBController_CherryKeyboard(CherryKeyboardControl
Rolling.brightness = CHERRY_KB_BRIGHTNESS_HIGHEST;
Rolling.color_mode = MODE_COLORS_NONE;
modes.push_back(Rolling);
mode Curve;
Curve.name = "Curve";
Curve.value = CHERRY_KB_MODE_CURVE;
@ -337,7 +339,7 @@ void RGBController_CherryKeyboard::SetupZones()
new_zone.matrix_map->height = CHERRY_MATRIX_MAP_HEIGHT;
new_zone.matrix_map->width = CHERRY_MATRIX_MAP_WIDTH;
new_zone.matrix_map->map = (unsigned int *)&matrix_map;
zones.push_back(new_zone);
for(int led_idx = 0; led_idx < CHERRY_MATRIX_CELL_COUNT; led_idx++)

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_CherryKeyboard.h |
| |
| Generic RGB Interface for Cherry RGB |
| Keyboard |
| |
| Sebastian Kraus 12/25/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CherryKeyboard.h |
| |
| RGBController for Cherry keyboard |
| |
| Sebastian Kraus 25 Dec 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| ColorfulGPUController.cpp |
| |
| Driver for Colorful GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "ColorfulGPUController.h"
#include "pci_ids.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| ColorfulGPUController.h |
| |
| Driver for Colorful GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
@ -18,7 +27,6 @@ public:
std::string GetDeviceLocation();
void SetDirect(RGBColor color);
private:
i2c_smbus_interface * bus;
colorful_gpu_dev_id dev;

View file

@ -1,4 +1,13 @@
#include <stdio.h>
/*---------------------------------------------------------*\
| ColorfulGPUControllerDetect.cpp |
| |
| Detector for Colorful GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| RGBController_ColorfulGPU.cpp |
| |
| RGBController for Colorful GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <array>
#include "RGBController_ColorfulGPU.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| RGBController_ColorfulGPU.h |
| |
| RGBController for Colorful GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
@ -20,7 +29,4 @@ public:
private:
ColorfulGPUController* controller;
};

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| ColorfulTuringGPUController.cpp |
| |
| Driver for Colorful Turing GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "ColorfulTuringGPUController.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| ColorfulTuringGPUController.h |
| |
| Driver for Colorful Turing GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>

View file

@ -1,4 +1,13 @@
#include <stdio.h>
/*---------------------------------------------------------*\
| ColorfulTuringGPUControllerDetect.cpp |
| |
| Driver for Colorful Turing GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| RGBController_ColorfulTuringGPU.cpp |
| |
| RGBController for Colorful Turing GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <array>
#include "RGBController_ColorfulTuringGPU.h"

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| RGBController_ColorfulTuringGPU.h |
| |
| RGBController for Colorful Turing GPU |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMARGBController.cpp |
| |
| Driver for Coolermaster ARGB USB Controller |
| |
| Chris M (Dr_No) 10th Oct 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMARGBController.cpp |
| |
| Driver for Cooler Master ARGB controller |
| |
| Chris M (Dr_No) 10 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CMARGBController.h"

View file

@ -1,13 +1,13 @@
/*-------------------------------------------------------------------*\
| CMARGBController.h |
| |
| Driver for Coolermaster ARGB USB Controller |
| |
| Chris M (Dr_No) 10th Oct 2020 |
| |
| Simple RGB device with 5 modes |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMARGBController.h |
| |
| Driver for Cooler Master ARGB controller |
| |
| Chris M (Dr_No) 10 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMARGBController.cpp |
| |
| Driver for Coolermaster ARGB Controller |
| |
| Chris M (Dr_No) 14th Oct 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMARGBController.cpp |
| |
| RGBController for Cooler Master ARGB controller |
| |
| Chris M (Dr_No) 14 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMARGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMARGBController.h |
| |
| Driver for Coolermaster ARGB Controller |
| |
| Chris M (Dr_No) 14th Oct 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMARGBController.h |
| |
| RGBController for Cooler Master ARGB controller |
| |
| Chris M (Dr_No) 14 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMARGBGen2A1Controller.cpp |
| |
| Driver for Coolermaster ARGB Gen 2 A1 USB Controller |
| |
| morg (Morgan Guimard) 6/26/2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMARGBGen2A1Controller.cpp |
| |
| Driver for Cooler Master ARGB Gen 2 A1 controller |
| |
| Morgan Guimard (morg) 26 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMARGBGen2A1Controller.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMARGBGen2A1Controller.h |
| |
| Driver for Coolermaster ARGB Gen 2 A1 USB Controller |
| |
| morg (Morgan Guimard) 6/26/2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMARGBGen2A1Controller.h |
| |
| Driver for Cooler Master ARGB Gen 2 A1 controller |
| |
| Morgan Guimard (morg) 26 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMARGBGen2A1Controller.cpp |
| |
| Driver for Coolermaster ARGB Gen 2 A1 USB Controller |
| |
| morg (Morgan Guimard) 6/26/2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMARGBGen2A1Controller.cpp |
| |
| Driver for Cooler Master ARGB Gen 2 A1 controller |
| |
| Morgan Guimard (morg) 26 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <chrono>
#include <thread>

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMARGBGen2A1Controller.h |
| |
| Driver for Coolermaster ARGB Controller |
| |
| morg (Morgan Guimard) 6/26/2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMARGBGen2A1Controller.h |
| |
| Driver for Cooler Master ARGB Gen 2 A1 controller |
| |
| Morgan Guimard (morg) 26 Jun 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardAbstractController.h |
| |
| Abstract driver for Coolermaster keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardAbstractController.cpp |
| |
| Driver for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CMKeyboardAbstractController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardAbstractController.h |
| |
| Abstract driver for Coolermaster keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardAbstractController.h |
| |
| Driver for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardDevices.cpp |
| |
| Keymap definitions for Cooler Master Keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardDevices.cpp |
| |
| Device list for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CMKeyboardDevices.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardDevices.h |
| |
| Keymap definitions for Cooler Master Keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardDevices.h |
| |
| Device list for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardV1Controller.cpp |
| |
| Driver for Coolermaster MasterKeys keyboards (V1) |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardV1Controller.cpp |
| |
| Driver for Cooler Master MasterKeys (V1) keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cmath>
#include "CMKeyboardV1Controller.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardV1Controller.h |
| |
| Driver for Coolermaster MasterKeys keyboards (V1) |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardV1Controller.h |
| |
| Driver for Cooler Master MasterKeys (V1) keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardV2Controller.cpp |
| |
| Driver for Coolermaster V2 |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardV2Controller.cpp |
| |
| Driver for Cooler Master V2 keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <locale>
#include <codecvt>

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMKeyboardV2Controller.h |
| |
| Driver for Coolermaster V2 |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMKeyboardV2Controller.h |
| |
| Driver for Cooler Master V2 keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMKeyboardController.cpp |
| |
| Controller for Coolermaster keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMKeyboardController.cpp |
| |
| RGBController for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMKeyboardController.h"
#include "CMKeyboardDevices.h"

View file

@ -1,11 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMKeyboardController.h |
| |
| Controller for Coolermaster keyboards |
| |
| Tam D (too.manyhobbies) 30th Nov 2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMKeyboardController.h |
| |
| RGBController for Cooler Master keyboards |
| |
| Tam D (too.manyhobbies) 30 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMM711Controller.cpp |
| |
| Driver for Coolermaster Master Mouse 711 |
| |
| Chris M (Dr_No) 14th Feb 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMM711Controller.cpp |
| |
| Driver for Cooler Master M711 mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMMM711Controller.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMM711Controller.h |
| |
| Driver for Coolermaster Master Mouse 711 |
| |
| Chris M (Dr_No) 14th Feb 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMM711Controller.h |
| |
| Driver for Cooler Master M711 mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMM711Controller.cpp |
| |
| Driver for Coolermaster MM711 Controller |
| |
| Chris M (Dr_No) 14th Feb 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMM711Controller.cpp |
| |
| RGBController for Cooler Master M711 mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMMM711Controller.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMM711Controller.h |
| |
| Driver for Coolermaster MM711 Controller |
| |
| Chris M (Dr_No) 14th Feb 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMM711Controller.h |
| |
| RGBController for Cooler Master M711 mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,12 +1,14 @@
/*-------------------------------------------------------------------*\
| CMMMController.cpp |
| |
| Driver for Coolermaster MasterMouse |
| |
| Chris M (Dr_No) 14th Feb 2021 - MM711 Base |
| Dracrius 12th Mar 2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMMController.cpp |
| |
| Driver for Cooler Master mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| Dracrius 12 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMMMController.h"

View file

@ -1,12 +1,14 @@
/*-------------------------------------------------------------------*\
| CMMMController.h |
| |
| Driver for Coolermaster MasterMouse |
| |
| Chris M (Dr_No) 14th Feb 2021 - MM711 Base |
| Dracrius 12th Mar 2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMMController.h |
| |
| Driver for Cooler Master mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| Dracrius 12 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,12 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMMController.cpp |
| |
| Driver for Cooler Master MasterMouse Controller |
| |
| Chris M (Dr_No) 14th Feb 2021 - MM711 Base |
| Dracrius 12th Mar 2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMMController.cpp |
| |
| RGBController for Cooler Master mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| Dracrius 12 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMMMController.h"

View file

@ -1,12 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMMController.h |
| |
| Driver for Coolermaster MaterMouse Controller |
| |
| Chris M (Dr_No) 14th Feb 2021 - MM711 Base |
| Dracrius 12th Mar 2022 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMMController.h |
| |
| RGBController for Cooler Master mouse |
| |
| Chris M (Dr_No) 14 Feb 2021 |
| Dracrius 12 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMP750Controller.cpp |
| |
| Driver for Coolermaster MP750 mousepad |
| |
| Chris M (Dr_No) 16th Apr 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMP750Controller.cpp |
| |
| Driver for Cooler Master MP750 mousemat |
| |
| Chris M (Dr_No) 16 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "CMMP750Controller.h"
@ -152,12 +154,12 @@ void CMMP750Controller::SendUpdate()
}
if(current_mode > CM_MP750_MODE_BREATHING)
{
{
//If the mode is random colours set SPEED at BYTE2
buffer[CM_RED_BYTE] = speed_mode_data[current_speed];
}
else
{
{
//Otherwise SPEED is BYTE5
buffer[CM_RED_BYTE] = current_red;
buffer[CM_GREEN_BYTE] = current_green;

View file

@ -1,18 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMP750Controller.h |
| |
| Driver for Coolermaster MP750 mousepad |
| |
| Chris M (Dr_No) 16th Apr 2020 |
| |
| Simple RGB device with 5 modes |
| BYTE0 = Mode (0x01 thru 0x05 |
| BYTE1 = ?? Must be set to 0x04 for colour modes otherwise ignored |
| BYTE2 = Colour Modes: RED else Cycle SPEED |
| BYTE3 = Colour Modes: GREEN else ignored |
| BYTE4 = Colour Modes: BLUE else ignored |
| BYTE5 = Colour Modes: SPEED else ignored |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMP750Controller.h |
| |
| Driver for Cooler Master MP750 mousemat |
| |
| Chris M (Dr_No) 16 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
@ -26,6 +21,16 @@
#define CM_SERIAL_SIZE (sizeof(serial) / sizeof(serial[ 0 ]))
#define HID_MAX_STR 255
/*-------------------------------------------------------------------*\
| Simple RGB device with 5 modes |
| BYTE0 = Mode (0x01 thru 0x05 |
| BYTE1 = ?? Must be set to 0x04 for colour modes otherwise ignored |
| BYTE2 = Colour Modes: RED else Cycle SPEED |
| BYTE3 = Colour Modes: GREEN else ignored |
| BYTE4 = Colour Modes: BLUE else ignored |
| BYTE5 = Colour Modes: SPEED else ignored |
\*-------------------------------------------------------------------*/
enum
{
CM_MODE_BYTE = 1,

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMP750Controller.cpp |
| |
| Driver for Coolermaster MP750 mousepad |
| |
| Chris M (Dr_No) 18th Apr 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMP750Controller.cpp |
| |
| RGBController for Cooler Master MP750 mousemat |
| |
| Chris M (Dr_No) 18 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMMP750Controller.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMP750Controller.h |
| |
| Driver for Coolermaster MP750 mousepad |
| |
| Chris M (Dr_No) 18th Apr 2020 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMP750Controller.h |
| |
| RGBController for Cooler Master MP750 mousemat |
| |
| Chris M (Dr_No) 18 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMonitorController.cpp |
| |
| Driver for Coolermaster Gaming Monitor |
| |
| morg (Morgan Guimard) 9/18/2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMonitorController.cpp |
| |
| Driver for Cooler Master monitor |
| |
| Morgan Guimard (morg) 18 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMMonitorController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMMonitorController.cpp |
| |
| Driver for Coolermaster Gaming Monitor |
| |
| morg (Morgan Guimard) 9/18/2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMMonitorController.h |
| |
| Driver for Cooler Master monitor |
| |
| Morgan Guimard (morg) 18 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMonitorController.cpp |
| |
| Driver for Coolermaster Gaming Monitor USB Controller |
| |
| morg (Morgan Guimard) 9/18/2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMonitorController.cpp |
| |
| RGBController for Cooler Master monitor |
| |
| Morgan Guimard (morg) 18 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <chrono>
#include <thread>

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMMonitorController.cpp |
| |
| Driver for Coolermaster Gaming Monitor USB Controller |
| |
| morg (Morgan Guimard) 9/18/2023 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMMonitorController.h |
| |
| RGBController for Cooler Master monitor |
| |
| Morgan Guimard (morg) 18 Sep 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------------------------*\
| CMR6000Controller.cpp |
| |
| Driver for Coolermaster based AMD Radeon GPU (6000 series) |
| |
| Eric S (edbgon) 2nd Feb 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMR6000Controller.cpp |
| |
| Driver for Cooler Master AMD Radeon 6000 series GPU |
| |
| Eric S (edbgon) 02 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMR6000Controller.h"

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------------------------*\
| CMR6000Controller.h |
| |
| Driver for Coolermaster based AMD Radeon GPU (6000 series) |
| |
| Eric S (edbgon) 2nd Feb 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMR6000Controller.h |
| |
| Driver for Cooler Master AMD Radeon 6000 series GPU |
| |
| Eric S (edbgon) 02 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,10 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMR6000Controller.cpp |
| |
| Driver for Coolermaster based AMD Radeon GPU (6000 series) |
| |
| Eric S (edbgon) 2nd Feb 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMR6000Controller.cpp |
| |
| RGBController for Cooler Master AMD Radeon 6000 series |
| GPU |
| |
| Eric S (edbgon) 02 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMR6000Controller.h"

View file

@ -1,10 +1,14 @@
/*-------------------------------------------------------------------*\
| RGBController_CMR6000Controller.h |
| |
| Driver for Coolermaster based AMD Radeon GPU (6000 series) |
| |
| Eric S (edbgon) 2nd Feb 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMR6000Controller.h |
| |
| RGBController for Cooler Master AMD Radeon 6000 series |
| GPU |
| |
| Eric S (edbgon) 02 Feb 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMRGBController.cpp |
| |
| Driver for Coolermaster RGB USB Controller |
| |
| Nic W (midgetspy) 13th Apr 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMRGBController.cpp |
| |
| Driver for Cooler Master RGB controller |
| |
| Nic W (midgetspy) 13 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "RGBController_CMRGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| CMRGBController.h |
| |
| Driver for Coolermaster RGB USB Controller |
| |
| Nic W (midgetspy) 13th Apr 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMRGBController.h |
| |
| Driver for Cooler Master RGB controller |
| |
| Nic W (midgetspy) 13 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMRGBController.cpp |
| |
| Driver for Coolermaster RGB USB Controller |
| |
| Nic W (midgetspy) 13th Apr 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMRGBController.cpp |
| |
| RGBController for Cooler Master RGB controller |
| |
| Nic W (midgetspy) 13 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMRGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMRGBController.h |
| |
| Driver for Coolermaster RGB USB Controller |
| |
| Nic W (midgetspy) 13th Apr 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMRGBController.h |
| |
| RGBController for Cooler Master RGB controller |
| |
| Nic W (midgetspy) 13 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,13 +1,13 @@
/*-------------------------------------------------------------------*\
| CMSmallARGBController.cpp |
| |
| Driver for Coolermaster Small ARGB USB Controller |
| |
| Chris M (Dr_No) 31st Jan 2021 |
| |
| Simple RGB device with 5 modes |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMSmallARGBController.cpp |
| |
| Driver for Cooler Master Small ARGB controller |
| |
| Chris M (Dr_No) 31 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "CMSmallARGBController.h"

View file

@ -1,13 +1,13 @@
/*-------------------------------------------------------------------*\
| CMSmallARGBController.h |
| |
| Driver for Coolermaster Small ARGB USB Controller |
| |
| Chris M (Dr_No) 31st Jan 2021 |
| |
| Simple RGB device with 5 modes |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| CMSmallARGBController.h |
| |
| Driver for Cooler Master Small ARGB controller |
| |
| Chris M (Dr_No) 31 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
@ -16,6 +16,10 @@
#include <hidapi/hidapi.h>
#include "RGBController.h" //Needed to set the direct mode
/*---------------------------------------------------------*\
| Simple RGB device with 5 modes |
\*---------------------------------------------------------*/
#define CM_SMALL_ARGB_PACKET_SIZE 65
#define CM_SMALL_ARGB_INTERRUPT_TIMEOUT 250

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMSmallARGBController.cpp |
| |
| Driver for Coolermaster Small ARGB USB Controller |
| |
| Chris M (Dr_No) 31st Jan 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMSmallARGBController.cpp |
| |
| RGBController for Cooler Master Small ARGB controller |
| |
| Chris M (Dr_No) 31 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_CMSmallARGBController.h"

View file

@ -1,11 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_CMSmallARGBController.h |
| |
| Driver for Coolermaster Small ARGB USB Controller |
| |
| Chris M (Dr_No) 31st Jan 2021 |
| |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_CMSmallARGBController.h |
| |
| RGBController for Cooler Master Small ARGB controller |
| |
| Chris M (Dr_No) 31 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,3 +1,12 @@
/*---------------------------------------------------------*\
| CoolerMasterControllerDetect.cpp |
| |
| Detector for Cooler Master devices |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
/*-----------------------------------------------------*\
| OpenRGB includes |
\*-----------------------------------------------------*/