Update Philips Hue controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-03 11:43:51 -05:00
parent 59d1c07075
commit 2fd4cfb2a8
9 changed files with 90 additions and 50 deletions

View file

@ -1,7 +1,12 @@
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Driver for Philips Hue | | PhilipsHueController.cpp |
| | | |
| Adam Honse (calcprogrammer1@gmail.com), 9/15/2020 | | Driver for Philips Hue |
| |
| Adam Honse (calcprogrammer1@gmail.com) 15 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#include "PhilipsHueController.h" #include "PhilipsHueController.h"
@ -64,7 +69,7 @@ void PhilipsHueController::SetColor(unsigned char red, unsigned char green, unsi
} }
} }
dark = true; dark = true;
} }
else else
{ {

View file

@ -1,15 +1,19 @@
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Definitions for Philips Hue | | PhilipsHueController.h |
| | | |
| Adam Honse (calcprogrammer1@gmail.com), 9/15/2020 | | Driver for Philips Hue |
| |
| Adam Honse (calcprogrammer1@gmail.com) 15 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#include "HueDeviceTypes.h" #pragma once
#include <string> #include <string>
#include <vector> #include <vector>
#include "HueDeviceTypes.h"
#pragma once
class PhilipsHueController class PhilipsHueController
{ {

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| PhilipsHueControllerDetect.cpp |
| |
| Detector for Philips Hue |
| |
| Adam Honse (calcprogrammer1@gmail.com) 15 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Bridge.h" #include "Bridge.h"
#include "HueDeviceTypes.h" #include "HueDeviceTypes.h"

View file

@ -1,7 +1,12 @@
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Driver for Philips Hue Entertainment Mode | | PhilipsHueEntertainmentController.cpp |
| | | |
| Adam Honse (calcprogrammer1@gmail.com), 11/6/2020 | | Detector for Philips Hue Entertainment Mode |
| |
| Adam Honse (calcprogrammer1@gmail.com) 06 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#include "RGBController.h" #include "RGBController.h"
@ -81,7 +86,7 @@ void PhilipsHueEntertainmentController::Connect()
| Create Entertainment Mode from bridge and group | | Create Entertainment Mode from bridge and group |
\*-------------------------------------------------*/ \*-------------------------------------------------*/
entertainment = new hueplusplus::EntertainmentMode(bridge, group); entertainment = new hueplusplus::EntertainmentMode(bridge, group);
/*-------------------------------------------------*\ /*-------------------------------------------------*\
| Connect Hue Entertainment Mode | | Connect Hue Entertainment Mode |
\*-------------------------------------------------*/ \*-------------------------------------------------*/

View file

@ -1,19 +1,23 @@
/*---------------------------------------------------------*\ /*---------------------------------------------------------*\
| Definitions for Philips Hue Entertainment Mode | | PhilipsHueEntertainmentController.h |
| | | |
| Adam Honse (calcprogrammer1@gmail.com), 11/6/2020 | | Detector for Philips Hue Entertainment Mode |
| |
| Adam Honse (calcprogrammer1@gmail.com) 06 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/ \*---------------------------------------------------------*/
#pragma once
#include <string>
#include <vector>
#include "Bridge.h" #include "Bridge.h"
#include "EntertainmentMode.h" #include "EntertainmentMode.h"
#include "Group.h" #include "Group.h"
#include "RGBController.h" #include "RGBController.h"
#include <string>
#include <vector>
#pragma once
#define HUE_ENTERTAINMENT_HEADER_SIZE 16 #define HUE_ENTERTAINMENT_HEADER_SIZE 16
#define HUE_ENTERTAINMENT_LIGHT_SIZE 9 #define HUE_ENTERTAINMENT_LIGHT_SIZE 9

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_PhilipsHue.cpp | | RGBController_PhilipsHue.cpp |
| | | |
| Generic RGB Interface for Philips Hue | | RGBController for Philips Hue |
| | | |
| Adam Honse (CalcProgrammer1) 9/15/2020 | | Adam Honse (calcprogrammer1@gmail.com) 15 Sep 2020 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_PhilipsHue.h" #include "RGBController_PhilipsHue.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_PhilipsHue.h | | RGBController_PhilipsHue.h |
| | | |
| Generic RGB Interface for Philips Hue | | RGBController for Philips Hue |
| | | |
| Adam Honse (CalcProgrammer1) 9/15/2020 | | Adam Honse (calcprogrammer1@gmail.com) 15 Sep 2020 |
\*-----------------------------------------*/ | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once #pragma once
#include "RGBController.h" #include "RGBController.h"
#include "PhilipsHueController.h" #include "PhilipsHueController.h"

View file

@ -1,11 +1,13 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_PhilipsHueEntertainment.cpp| | RGBController_PhilipsHueEntertainment.cpp |
| | | |
| Generic RGB Interface for Philips Hue | | RGBController for Philips Hue Entertainment Mode |
| Entertainment Mode | | |
| | | Adam Honse (calcprogrammer1@gmail.com) 07 Nov 2020 |
| Adam Honse (CalcProgrammer1) 11/7/2020 | | |
\*-----------------------------------------*/ | This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_PhilipsHueEntertainment.h" #include "RGBController_PhilipsHueEntertainment.h"
#include "ResourceManager.h" #include "ResourceManager.h"

View file

@ -1,18 +1,20 @@
/*-----------------------------------------*\ /*---------------------------------------------------------*\
| RGBController_PhilipsHueEntertainment.h | | RGBController_PhilipsHueEntertainment.h |
| | | |
| Generic RGB Interface for Philips Hue | | RGBController for Philips Hue Entertainment Mode |
| Entertainment Mode | | |
| | | Adam Honse (calcprogrammer1@gmail.com) 07 Nov 2020 |
| Adam Honse (CalcProgrammer1) 11/7/2020 | | |
\*-----------------------------------------*/ | This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once #pragma once
#include "RGBController.h"
#include "PhilipsHueEntertainmentController.h"
#include <atomic> #include <atomic>
#include <thread> #include <thread>
#include "RGBController.h"
#include "PhilipsHueEntertainmentController.h"
class RGBController_PhilipsHueEntertainment : public RGBController class RGBController_PhilipsHueEntertainment : public RGBController
{ {