diff --git a/README.md b/README.md index 16c39b2..2cff460 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,10 @@ [![status-badge](https://ci.redrise.ru/api/badges/13/status.svg)](https://ci.redrise.ru/repos/13) -Reference hardware used: Z890 AORUS PRO ICE, 048d:5711 Integrated Technology Express, Inc. GIGABYTE Device +Reference hardware used: Z890 AORUS PRO ICE, 048d:5711 Integrated Technology Express, Inc. GIGABYTE Device + +Information regarding other motherboards: +* *[X870 AORUS ELITE WIFI7](https://github.com/developersu/argbColors/issues/2)* ### udev rules @@ -21,7 +24,7 @@ See SPECIFICATION.md ### License [![GNU GPLv3 Image](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.en.html) -argbColors is a free software licensed under GPL v3.0 It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. [GNU General Public License](https://www.gnu.org/licenses/gpl.html) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. +argbColors is a free software licensed under GPL v3.0 It is distributed in the hope that it will be useful, but **WITHOUT ANY WARRANTY**. [GNU General Public License](https://www.gnu.org/licenses/gpl.html) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This application is in no way affiliated with GIGABYTE, Integrated Technology Express or any of its partners \ No newline at end of file diff --git a/bin/argbColors b/bin/argbColors deleted file mode 100755 index 00f33df..0000000 Binary files a/bin/argbColors and /dev/null differ diff --git a/src/argb-colors.c b/src/argb-colors.c index 6ec48d9..9fbfc37 100644 --- a/src/argb-colors.c +++ b/src/argb-colors.c @@ -21,7 +21,7 @@ #include "iousb.c" enum synchronized_commands { SYNC_COLOR, SYNC_WAVE, SYNC_WAVE2, SYNC_OFF, - SPEC_IMPULSE, SPEC_FLASH, SPEC_FLASH2, SPEC_CYCLE } + SPEC_IMPULSE, SPEC_FLASH, SPEC_FLASH2, SPEC_CYCLE, SPEC_COLOR} synchronized_commands; struct separate_c{ @@ -85,9 +85,11 @@ int prepare_sync(char* command){ sync_cmd = SPEC_FLASH2; else if (strcmp(command, "cycle") == 0) sync_cmd = SPEC_CYCLE; + else if (strcmp(command, "color2") == 0) + sync_cmd = SPEC_COLOR; else{ printf("Invalid command \"%s\"\n" - "Allowed: color wave wave2 off. Plus aliases: impulse flash flash2 cycle\n", command); + "Allowed: color wave wave2 off. Plus aliases: impulse flash flash2 cycle color2\n", command); return -1; } return 0; @@ -176,6 +178,11 @@ int sync_flow(unsigned int red, unsigned int green, unsigned int blue, unsigned make_separate_command(&s, i, "cycle", red, green, blue, brightness, intensity); } return runStaticCommand(s); + case SPEC_COLOR: + for (int i = 1; i < 7; i++){ + make_separate_command(&s, i, "color", red, green, blue, brightness, intensity); + } + return runStaticCommand(s); default: return -1; } diff --git a/src/commands.c b/src/commands.c index 8193fb1..4f2f403 100644 --- a/src/commands.c +++ b/src/commands.c @@ -199,14 +199,6 @@ int runStaticCommand(separate_commands_set c_set){ counter = 0; limit = 7; -#ifdef DEBUG - print_array(c_set.dir1, 64); - print_array(c_set.dir2, 64); - print_array(c_set.dir3, 64); - print_array(c_set.dir4, 64); - print_array(c_set.dir5, 64); - print_array(c_set.dir6, 64); -#endif if(64 != writeUsb(c_set.dir1)) return 1; @@ -646,7 +638,7 @@ int staticCycle(int dev_number, separate_commands_set *s, int intensity, int bri return 1; } - switch (dev_number){ + switch (dev_number){ case 1: //cc 22 04 00 00 00 00 00 00 00 00 04 __ 00 fd 00 fe 00 00 00 00 00 __ __ __ __ 00 00 00 00 07 s->name1 = EFFECT_CYCLE; memcpy(s->dir1, (unsigned char [64]){ 0xcc, 0x22, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, brgt, 0x00, 0xfd, 0x00,