Update header comments for some ASUS controllers

This commit is contained in:
Adam Honse 2024-05-09 11:54:21 -05:00
parent 6aa6e5a972
commit c60539cb62
37 changed files with 404 additions and 317 deletions

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| AsusAuraCoreController.cpp |
| |
| Driver for ASUS ROG Aura Core RGB |
| lighting controller |
| |
| Adam Honse (CalcProgrammer1) 4/13/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraCoreController.cpp |
| |
| Driver for ASUS ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 13 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraCoreController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| AsusAuraCoreController.h |
| |
| Definitions and types for ASUS ROG Aura |
| Core RGB lighting controller |
| |
| Adam Honse (CalcProgrammer1) 4/13/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraCoreController.h |
| |
| Driver for ASUS ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 13 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
@ -118,5 +120,4 @@ private:
void Handshake();
void SendIdString();
void SendQuery();
};

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraCore.cpp |
| |
| Generic RGB Interface for ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 4/17/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraCore.cpp |
| |
| RGBController for ASUS ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 13 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraCore.h"

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraCore.h |
| |
| Generic RGB Interface for ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 4/17/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraCore.h |
| |
| RGBController for ASUS ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 13 Apr 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,3 +1,15 @@
/*---------------------------------------------------------*\
| AsusAuraCoreControllerDetect.cpp |
| |
| Detector for ASUS ROG Aura Core |
| |
| Adam Honse (CalcProgrammer1) 13 Apr 2020 |
| Chris M (Dr_No) 28 Jul 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "AsusAuraCoreController.h"
#include "RGBController.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
| AsusAuraCoreLaptopController.cpp |
| |
| Driver for Asus Aura Core Laptop USB Controller |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
\*---------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraCoreLaptopController.cpp |
| |
| Driver for ASUS ROG Aura Core Laptop |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "AsusAuraCoreLaptopController.h"
#include "SettingsManager.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
| AsusAuraCoreLaptopController.h |
| |
| Driver for AsusAuraCoreLaptop USB Controller |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
\*---------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraCoreLaptopController.h |
| |
| Driver for ASUS ROG Aura Core Laptop |
| |
| Chris M (Dr_No) 28 Jul 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_AsusAuraCoreLaptop.cpp |
| |
| Driver for AsusAuraCoreLaptop USB Controller |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
\*---------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraCoreLaptop.cpp |
| |
| RGBController for ASUS ROG Aura Core Laptop |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraCoreLaptop.h"

View file

@ -1,11 +1,13 @@
/*---------------------------------------------------------------------*\
| RGBController_AsusAuraCoreLaptop.h |
| |
| Driver for AsusAuraCoreLaptop USB Controller |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
\*---------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraCoreLaptop.h |
| |
| RGBController for ASUS ROG Aura Core Laptop |
| |
| Chris M (Dr_No) 28 Jul 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,14 +1,17 @@
/*-----------------------------------------*\
| AsusAuraGPUController.cpp |
| |
| Driver for ASUS Aura RGB on GPUs |
| |
| Jan Rettig (Klapstuhl) 14.02.2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraGPUController.cpp |
| |
| Driver for ASUS Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14 Feb 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraGPUController.h"
#include "pci_ids.h"
#include <cstring>
AuraGPUController::AuraGPUController(i2c_smbus_interface* bus, aura_gpu_dev_id dev)
{

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| AsusAuraGPUController.h |
| |
| Definitions for ASUS Aura RGB on GPUs |
| |
| Jan Rettig (Klapstuhl) 14.02.2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraGPUController.h |
| |
| Driver for ASUS Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14 Feb 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| AsusAuraGPUControllerDetect.cpp |
| |
| Driver for ASUS Aura RGB on GPUs |
| |
| Jan Rettig (Klapstuhl) 14.02.2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraGPUControllerDetect.cpp |
| |
| Detector for ASUS Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14 Feb 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraGPU.h |
| |
| Generic RGB Interface for Asus Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14.02.2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraGPU.cpp |
| |
| RGBController for ASUS Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14 Feb 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraGPU.h"

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraGPU.h |
| |
| Generic RGB Interface for Asus Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14.02.2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraGPU.h |
| |
| RGBController for ASUS Aura GPU |
| |
| Jan Rettig (Klapstuhl) 14 Feb 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| AsusAuraHeadsetStandController.cpp |
| |
| Driver for ASUS Aura RGB USB |
| lighting controller |
| |
| Mola19 06/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraHeadsetStandController.cpp |
| |
| Driver for ASUS Aura headset stand |
| |
| Mola19 06 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraHeadsetStandController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| AsusAuraHeadsetStandController.h |
| |
| Definitions and types for ASUS Aura |
| USB RGB lighting controller |
| |
| Mola19 06/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraHeadsetStandController.h |
| |
| Driver for ASUS Aura headset stand |
| |
| Mola19 06 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_AsusAuraHeadsetStand.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 06/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraHeadsetStand.cpp |
| |
| RGBController for ASUS Aura headset stand |
| |
| Mola19 06 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraHeadsetStand.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraHeadsetStand.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 06/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraHeadsetStand.h |
| |
| RGBController for ASUS Aura headset stand |
| |
| Mola19 06 Apr 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,15 +1,16 @@
/*-----------------------------------------*\
| AsusAuraKeyboardController.cpp |
| |
| Driver for ASUS Aura RGB USB |
| lighting controller |
| |
| Adam Honse (CalcProgrammer1) 3/19/2020 |
\*-----------------------------------------*/
#include "AsusAuraKeyboardController.h"
/*---------------------------------------------------------*\
| AsusAuraKeyboardController.cpp |
| |
| Driver for ASUS Aura keyboard |
| |
| Adam Honse (CalcProgrammer1) 19 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraKeyboardController.h"
AuraKeyboardController::AuraKeyboardController(hid_device* dev_handle, const char* path)
{

View file

@ -1,19 +1,20 @@
/*-----------------------------------------*\
| AsusAuraKeyboardController.h |
| |
| Definitions and types for ASUS Aura |
| USB RGB lighting controller |
| |
| Adam Honse (CalcProgrammer1) 3/19/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraKeyboardController.h |
| |
| Driver for ASUS Aura keyboard |
| |
| Adam Honse (CalcProgrammer1) 19 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <vector>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
class AuraKeyboardController
{

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraKeyboard.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Adam Honse (CalcProgrammer1) 3/19/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraKeyboard.cpp |
| |
| RGBController for ASUS Aura keyboard |
| |
| Adam Honse (CalcProgrammer1) 19 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_AsusAuraKeyboard.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_AsusAuraKeyboard.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Adam Honse (CalcProgrammer1) 3/19/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraKeyboard.h |
| |
| RGBController for ASUS Aura keyboard |
| |
| Adam Honse (CalcProgrammer1) 19 Mar 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusAuraKeyboardController.h"

View file

@ -1,15 +1,16 @@
/*-----------------------------------------*\
| AsusAuraMonitorController.cpp |
| |
| Driver for ASUS Aura RGB USB |
| lighting controller |
| |
| Mola19 08/03/2021 |
\*-----------------------------------------*/
#include "AsusAuraMonitorController.h"
/*---------------------------------------------------------*\
| AsusAuraMonitorController.cpp |
| |
| Driver for ASUS Aura monitor |
| |
| Mola19 08 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraMonitorController.h"
#include "LogManager.h"
AuraMonitorController::AuraMonitorController(hid_device* dev_handle, const char* path, uint16_t pid)
@ -87,17 +88,17 @@ void AuraMonitorController::UpdateLed
usb_buf[0x04] = offset + led * 3;
usb_buf[0x05] = red;
hid_send_feature_report(dev, usb_buf, 8);
usb_buf[0x04] = offset + led * 3 + 1;
usb_buf[0x05] = blue;
hid_send_feature_report(dev, usb_buf, 8);
usb_buf[0x04] = offset + led * 3 + 2;
usb_buf[0x05] = green;
hid_send_feature_report(dev, usb_buf, 8);
}
@ -113,6 +114,6 @@ void AuraMonitorController::ApplyChanges()
usb_buf[0x03] = 0x80;
usb_buf[0x04] = 0xA0;
usb_buf[0x05] = 0x01;
hid_send_feature_report(dev, usb_buf, 8);
}

View file

@ -1,18 +1,19 @@
/*-----------------------------------------*\
| AsusAuraMonitorController.h |
| |
| Definitions and types for ASUS Aura |
| USB RGB lighting controller |
| |
| Mola19 08/03/2023 |
\*-----------------------------------------*/
#include "RGBController.h"
#include <hidapi/hidapi.h>
/*---------------------------------------------------------*\
| AsusAuraMonitorController.h |
| |
| Driver for ASUS Aura monitor |
| |
| Mola19 08 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <hidapi/hidapi.h>
#include "RGBController.h"
enum
{
AURA_ROG_STRIX_XG27AQ_PID = 0x198C,
@ -23,7 +24,6 @@ enum
AURA_ROG_PG32UQ_PID = 0x19B9,
};
class AuraMonitorController
{
public:

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraMonitor.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 08/03/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraMonitor.cpp |
| |
| RGBController for ASUS Aura monitor |
| |
| Mola19 08 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraMonitor.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_AsusAuraMonitor.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 08/03/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraMonitor.h |
| |
| RGBController for ASUS Aura monitor |
| |
| Mola19 08 Mar 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusAuraMonitorController.h"

View file

@ -1,15 +1,16 @@
/*-----------------------------------------*\
| AsusAuraMouseController.cpp |
| |
| Driver for ASUS Aura RGB USB |
| lighting controller |
| |
| Adam Honse (CalcProgrammer1) 10/23/2020 |
\*-----------------------------------------*/
#include "AsusAuraMouseController.h"
/*---------------------------------------------------------*\
| AsusAuraMouseController.cpp |
| |
| Driver for ASUS Aura mouse |
| |
| Adam Honse (CalcProgrammer1) 23 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "AsusAuraMouseController.h"
AuraMouseController::AuraMouseController(hid_device* dev_handle, const char* path, uint16_t pid)
{

View file

@ -1,19 +1,20 @@
/*-----------------------------------------*\
| AsusAuraMouseController.h |
| |
| Definitions and types for ASUS Aura |
| USB RGB lighting controller |
| |
| Adam Honse (CalcProgrammer1) 10/23/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraMouseController.h |
| |
| Driver for ASUS Aura mouse |
| |
| Adam Honse (CalcProgrammer1) 23 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#include "AsusAuraMouseDevices.h"
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
#include "AsusAuraMouseDevices.h"
#define ASUS_AURA_MOUSE_PACKET_SIZE 65
#define HID_MAX_STR 255

View file

@ -1,16 +1,19 @@
/*-------------------------------------------------------------------*\
| AsusAuraMouseDevices.h |
| |
| Asus Aura Mouse definitions and mapping |
| |
| Chris M (Dr_No) 11th July 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraMouseDevices.h |
| |
| Device list for ASUS Aura mouse |
| |
| Chris M (Dr_No) 11 Jul 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <vector>
#include <map>
#pragma once
#define AURA_ROG_GLADIUS_II_CORE_PID 0x18DD
#define AURA_ROG_GLADIUS_II_PID 0x1845
#define AURA_ROG_GLADIUS_II_ORIGIN_PID 0x1877

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusAuraMouse.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraMouse.cpp |
| |
| RGBController for ASUS Aura mouse |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusAuraMouse.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_AsusAuraMouse.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Adam Honse (CalcProgrammer1) 10/25/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusAuraMouse.h |
| |
| RGBController for ASUS Aura mouse |
| |
| Adam Honse (CalcProgrammer1) 25 Oct 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusAuraMouseController.h"

View file

@ -1,17 +1,18 @@
/*-----------------------------------------*\
| AsusAuraMouseGen1Controller.cpp |
| |
| Driver for ASUS Aura RGB USB |
| lighting controller |
| |
| Mola19 11/30/2021 |
\*-----------------------------------------*/
#include "AsusAuraMouseGen1Controller.h"
/*---------------------------------------------------------*\
| AsusAuraMouseGen1Controller.cpp |
| |
| Driver for ASUS Aura gen 1 mouse |
| |
| Mola19 30 Nov 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include <chrono>
#include <thread>
#include "AsusAuraMouseGen1Controller.h"
AsusAuraMouseGen1Controller::AsusAuraMouseGen1Controller(hid_device* dev_handle, const char* path, uint16_t pid)
{
@ -114,7 +115,7 @@ void AsusAuraMouseGen1Controller::SendUpdate
unsigned char buf_in[9];
buf_in[0] = 0x0C;
hid_get_feature_report(dev, buf_in, 9);
std::this_thread::sleep_for(std::chrono::milliseconds(15));
}
@ -152,7 +153,7 @@ void AsusAuraMouseGen1Controller::SendDirectSpatha(std::vector<RGBColor> colors)
usb_buf[0x01] = 0x00;
usb_buf[0x02] = 0xF0;
usb_buf[0x03] = 0x00;
for(unsigned char i = 0; i < 3; i++)
{
usb_buf[4 + i * 3] = RGBGetRValue(colors[i]);

View file

@ -1,19 +1,20 @@
/*-----------------------------------------*\
| AsusAuraMouseGen1Controller.h |
| |
| Definitions and types for ASUS Aura |
| USB RGB lighting controller |
| |
| Mola19 11/30/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| AsusAuraMouseGen1Controller.h |
| |
| Driver for ASUS Aura gen 1 mouse |
| |
| Mola19 30 Nov 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController.h"
#pragma once
#include <string>
#include <vector>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
#define HID_MAX_STR 255

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusROGSpatha.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 11/05/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusROGSpatha.cpp |
| |
| RGBController for ASUS ROG Spatha |
| |
| Mola19 05 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusROGSpatha.h"
@ -197,7 +199,7 @@ void RGBController_AsusROGSpatha::DeviceUpdateMode()
{
return;
}
/*-----------------------------------------------------*\
| Needed to overwrite direct |
\*-----------------------------------------------------*/
@ -216,7 +218,7 @@ void RGBController_AsusROGSpatha::DeviceUpdateMode()
| OpenRGB misses that feature, hence both are the same |
\*------------------------------------------------------------------*/
controller->SendUpdate(0x12 + i * 38, (modes[active_mode].brightness << 4) + modes[active_mode].brightness);
if(modes[active_mode].value == ASUS_ROG_SPATHA_MODE_SPECTRUM_CYCLE || modes[active_mode].value == ASUS_ROG_SPATHA_MODE_BREATHING)
{
for(int j = 0; j < modes[active_mode].colors.size(); j++)
@ -237,7 +239,7 @@ void RGBController_AsusROGSpatha::DeviceSaveMode()
}
unsigned int profile = controller->GetActiveProfile();
/*-----------------------------------------------------*\
| Send data to all 3 zones |
\*-----------------------------------------------------*/
@ -250,7 +252,7 @@ void RGBController_AsusROGSpatha::DeviceSaveMode()
| OpenRGB misses that feature, hence both are the same |
\*------------------------------------------------------------------*/
controller->UpdateProfile(0x12 + i * 38, profile, (modes[active_mode].brightness << 4) + modes[active_mode].brightness);
if(modes[active_mode].value == ASUS_ROG_SPATHA_MODE_SPECTRUM_CYCLE || modes[active_mode].value == ASUS_ROG_SPATHA_MODE_BREATHING)
{
for(int j = 0; j < modes[active_mode].colors.size(); j++)

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_AsusROGSpatha.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 11/05/2023 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusROGSpatha.h |
| |
| RGBController for ASUS ROG Spatha |
| |
| Mola19 05 Nov 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusAuraMouseGen1Controller.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\
| RGBController_AsusROGStrixEvolve.cpp |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 11/30/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusROGStrixEvolve.cpp |
| |
| RGBController for ASUS ROG Evolve |
| |
| Mola19 30 Nov 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_AsusROGStrixEvolve.h"

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| RGBController_AsusROGStrixEvolve.h |
| |
| Generic RGB Interface for Asus Aura |
| USB controller driver |
| |
| Mola19 11/30/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_AsusROGStrixEvolve.h |
| |
| RGBController for ASUS ROG Evolve |
| |
| Mola19 30 Nov 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "AsusAuraMouseGen1Controller.h"