mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/*---------------------------------------------------------*\
|
|
| RGBController_PhilipsHueEntertainment.h |
|
|
| |
|
|
| RGBController for Philips Hue Entertainment Mode |
|
|
| |
|
|
| Adam Honse (calcprogrammer1@gmail.com) 07 Nov 2020 |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <thread>
|
|
#include "RGBController.h"
|
|
#include "PhilipsHueEntertainmentController.h"
|
|
|
|
class RGBController_PhilipsHueEntertainment : public RGBController
|
|
{
|
|
public:
|
|
RGBController_PhilipsHueEntertainment(PhilipsHueEntertainmentController* controller_ptr);
|
|
|
|
void SetupZones();
|
|
void ResizeZone(int zone, int new_size);
|
|
|
|
void DeviceUpdateLEDs();
|
|
void UpdateZoneLEDs(int zone);
|
|
void UpdateSingleLED(int led);
|
|
|
|
void DeviceUpdateMode();
|
|
|
|
void KeepaliveThreadFunction();
|
|
|
|
private:
|
|
PhilipsHueEntertainmentController* controller;
|
|
|
|
std::atomic<bool> KeepaliveThreadRunning;
|
|
std::thread* KeepaliveThread;
|
|
|
|
std::chrono::time_point<std::chrono::steady_clock> last_update_time;
|
|
};
|