Compare commits

..
Author SHA1 Message Date
Adam Honse 126c9295ac Add OpenRGB icon 2019-10-26 22:47:21 -05:00
Steven Franzen 0e4a162667 Change search path for i2c devices on linux
Looking for devices by bus instead of class should fix issues where the
class is named differently, e.g. i2c-dev instead of i2c-adapter.
2019-10-26 21:46:10 -05:00
Adam Honse 15fd537fa8 Add support for RGB E1.31 Streaming ACN multicast devices using libe131. Linux only for now. 2019-10-26 21:34:25 -05:00
Adam Honse 557c9df9a0 Rewrite OpenRazer support to use static constant device mapping table instead of big switch/case. Add support for some extra Razer devices. Use "ledstrip.txt" for LED strip settings 2019-10-26 18:21:02 -05:00
7 changed files with 20 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "dependencies/libe131"]
path = dependencies/libe131
url = https://github.com/hhromic/libe131
+3 -3
View File
@@ -260,8 +260,8 @@ void DetectI2CBusses()
struct dirent * ent;
int test_fd;
// Start looking for I2C adapters in /sys/class/i2c-adapter/
strcpy(driver_path, "/sys/class/i2c-adapter/");
// Start looking for I2C adapters in /sys/bus/i2c/devices/
strcpy(driver_path, "/sys/bus/i2c/devices/");
dir = opendir(driver_path);
if(dir == NULL)
@@ -459,11 +459,11 @@ void DetectRGBControllers(void)
DetectHyperXControllers(busses, rgb_controllers);
DetectLEDStripControllers(rgb_controllers);
DetectE131Controllers(rgb_controllers);
#ifdef WIN32
DetectRazerChromaSDKControllers(rgb_controllers);
#else
DetectE131Controllers(rgb_controllers);
DetectOpenRazerControllers(rgb_controllers);
#endif
+5 -2
View File
@@ -1,13 +1,12 @@
QT += core gui
LIBS += -le131
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = OpenAuraSDK.bin
TEMPLATE = app
INCLUDEPATH += \
dependencies/libe131/src/ \
i2c_smbus/ \
net_port/ \
serial_port/ \
@@ -21,6 +20,7 @@ INCLUDEPATH += \
qt/
SOURCES += \
dependencies/libe131/src/e131.c \
main.cpp \
OpenAuraSDK.cpp \
qt/OpenAuraSDKQtDialog.cpp \
@@ -72,5 +72,8 @@ HEADERS += \
RGBController/RGBController_HyperX.h \
RGBController/RGBController_OpenRazer.h
RESOURCES += \
qt/resources.qrc
FORMS += \
qt/openaurasdk.ui
Vendored Submodule
+1
Submodule dependencies/libe131 added at 0fc009f1f6
+3
View File
@@ -7,6 +7,9 @@ OpenAuraSDKQtDialog::OpenAuraSDKQtDialog(std::vector<i2c_smbus_interface *>& bus
{
ui->setupUi(this);
QIcon icon(":OpenRGB.png");
setWindowIcon(icon);
QPalette pal;
pal = ui->ButtonRed->palette();
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

+5
View File
@@ -0,0 +1,5 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>OpenRGB.png</file>
</qresource>
</RCC>