Comments (5)
I took a quick look at the code, you're using comparison (==
) instead of assignment (=
) in the last three if blocks. That's probably what's not working
from msi-mystic-light-tool.
The actual colour changing is fine its just each time I use setColor it causes the LED strip to blink off for a second. I think it might be something to do with the LED style or speed but I'm struggling to figure out how to use the third parameter in getSpeed and getStyle.
from msi-mystic-light-tool.
Yes but passing a negative color value to the sdk could have had that side effect. If it doesn't work it could actually be a hardware limitation so you need to use styles. The basic program flow is the same as the rest of the library:
- First, call getLedInfo to see which styles it supports
- Call setStyle passing as third parameter one of the supported styles from above
Something like
CComSafeArray<BSTR> styles;
BSTR ledName;
ml.getLedInfo(type, index, &ledName, &(styles.m_psa))
for(LONG i = styles.GetLowerBound(); i <= styles.GetUpperBound(); i++)
printf("Style #%d: %S \n", i, styles.GetAt(i));`
from msi-mystic-light-tool.
Thanks a lot for the response, using your code I was able to set the style to something different however when I tried to use ml.setColor I got:
Function returned status code: Requested feature is not supported in the selected LED.
Does this mean that I am unable to modify the behaviour of the other styles?
Also, how do you use getSpeed, I'd like to see if the styles change the LED speed but I can't seem to get any value out of it.
I appreciate you have more important things to do but these default presets are really bugging me...
from msi-mystic-light-tool.
Some styles manage colors autonomously, you can't force it. It's like a preset.
getSpeed will tell you the current speed of the style, to set your own call setSpeed
from msi-mystic-light-tool.
Related Issues (12)
- GetDeviceInfo dump HOT 9
- GetDeviceName returns an empty array
- How does it works? HOT 1
- For 64 bit, another dll needed
- small code fix to avoid timeout in GetDeviceInfo() call HOT 16
- Linux? HOT 2
- Need help getting it to work HOT 28
- Mysticlight 1 doesnt work HOT 2
- Feel free to use my wrapper for Mystic Light API HOT 4
- Mystic light SDK compatible with Mystic Light 3.0 ? (Timeout getDeviceInfo) HOT 9
- The LEDs revert to all white each time I restart or resume the computer from sleep HOT 3
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 msi-mystic-light-tool.