Comments (6)
The pull request I opened allows for optional arguments, but it uses a different protocol for the rainbow instruction. You could backport it to use the old rainbow instruction, but keep the optional speed argument.
from rogauracore.
Hey Josh,
Thanks for the quick response.
I tried backporting and running it, but when I execute $ make
, it threw some errors.
src/rogauracore.c:278:52: error: initializer element is not constant
{"single_breathing", &single_breathing, 2, 1, {SPEED}},
src/rogauracore.c:278:52: note: (near initialization for ‘FUNCTION_RECORDS[1].scalars[0]’)
src/rogauracore.c:279:54: error: initializer element is not constant
{"single_colorcycle", &single_colorcycle, 0, 1, {SPEED}},
src/rogauracore.c:279:54: note: (near initialization for ‘FUNCTION_RECORDS[2].scalars[0]’)
src/rogauracore.c:281:50: error: initializer element is not constant
{"multi_breathing", &multi_breathing, 4, 1, {SPEED}},
src/rogauracore.c:281:50: note: (near initialization for ‘FUNCTION_RECORDS[4].scalars[0]’)
src/rogauracore.c:291:44: error: initializer element is not constant
{"brightness", &set_brightness, 0, 1, {BRIGHTNESS}},
src/rogauracore.c:291:44: note: (near initialization for ‘FUNCTION_RECORDS[14].scalars[0]’)
Makefile:395: recipe for target 'src/rogauracore.o' failed
make[1]: *** [src/rogauracore.o] Error 1
From this thread, I figured out that declaring const
over here is generating errors.
const ScalarDef SPEED = { "SPEED", "speed", 1, 3 };
const ScalarDef BRIGHTNESS = { "BRIGHTNESS", "brightness", 0, 3 };
How do I fix this?
from rogauracore.
Oh, I thought I patched that. I might still have local changes; I'll have to check later. The fix looks like what I did in #32.
from rogauracore.
Yes, replacing const
with #define
fixed it.
I've made a pull request, do check it. Now it compiles without any errors.
But still, I am not able to figure out how to add the speed
parameter alongside rainbow.
I executed
$ sudo rogauracore rainbow 2
and I'm getting Function rainbow takes no arguments
.
Is this the right command?
from rogauracore.
My master branch is behind wroberts', so the fix still applied to it, but the branch you wanted to edit was retool. But if the rainbow command Will is using works for you, the one I'm using likely will not. You'd need to plug the old rainbow code into it, as well, right around line 298.
From the looks of things, that branch should already build, as-is.
from rogauracore.
Okay. I'll try the old rainbow code.
Thanks!
from rogauracore.
Related Issues (20)
- exit code 17 HOT 2
- A gui for rogauracore HOT 2
- when i set rogauracore rainbow. its show only red color HOT 1
- Brightness Control not working
- could not find rog aura even have compatible keyboard HOT 1
- Could not find ROG Aura Core keyboard. HOT 12
- asus rog GL503 HOT 1
- Could not find ROG Aura core keyboard - Asus TUF FA56II HOT 8
- Keyboard has suddenly gone dark on GX701GX-XB78 HOT 6
- asus g513 HOT 1
- sync
- Uninstalled rogauracore but the lighting it set isn't getting changed back to default
- Feature Request: rainbow_wave
- add asusctl as a dependacy HOT 1
- Automatic launch on startup HOT 2
- Not working on Zephyrus duo 16 (2023) HOT 5
- Fx506Lu keyboard not showing in lsusb
- change the color according to daytime
- [BUG]LIBUSB_error_access on Asus rog GL753DV
- lightbar not working on ROG Strix G512LI_G512LI 1.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rogauracore.