Initial commit for Raspberry Pi GPIO ARGB controller

This commit is contained in:
Adam Honse
2024-07-22 01:15:15 -05:00
parent d834b18a16
commit fc411345a3
35 changed files with 4974 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
/*---------------------------------------------------------*\
| RaspberryPiControllerDetect_Linux.cpp |
| |
| Detector for Raspberry Pi GPIO ARGB |
| |
| Adam Honse (CalcProgrammer1) 21 Jul 2024 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include "Detector.h"
#include "RaspberryPiController_Linux.h"
#include "RGBController_RaspberryPi_Linux.h"
/******************************************************************************************\
* *
* DetectRaspberryPiControllers *
* *
* Detect Raspberry Pi controllers *
* *
\******************************************************************************************/
void DetectRaspberryPiControllers()
{
RaspberryPiController* controller = new RaspberryPiController();
if(controller->Initialize())
{
RGBController_RaspberryPi* rgb_controller = new RGBController_RaspberryPi(controller);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}
REGISTER_DETECTOR("Raspberry Pi", DetectRaspberryPiControllers);