/*-------------------------------------------------------------------*\
|  RGBController_EVGAKeyboard.h                                       |
|                                                                     |
|  Driver for EVGA Z15 Keyboard                                       |
|                                                                     |
|  Chris M (Dr_No)          25 Nov 2021                               |
|                                                                     |
\*-------------------------------------------------------------------*/

#pragma once
#include "RGBController.h"
#include "EVGAKeyboardController.h"

class RGBController_EVGAKeyboard : public RGBController
{
public:
    RGBController_EVGAKeyboard(EVGAKeyboardController* controller_ptr);
    ~RGBController_EVGAKeyboard();

    void        SetupZones();
    void        ResizeZone(int zone, int new_size);

    void        DeviceUpdateLEDs();
    void        UpdateZoneLEDs(int zone);
    void        UpdateSingleLED(int led);

    void        SetCustomMode();
    void        DeviceUpdateMode();
    void        DeviceSaveMode();
private:
    uint8_t     current_mode;

    int         GetDeviceMode();
    RGBColor    GetRandomColor();

    EVGAKeyboardController* controller;
};
