-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USBButtonConfigureColor function. #49
Comments
Hi Simon, Looking at the function information in the SDK I have most likely not implemented that behavior. I have implemented the USBButtonConfigurePermanent function. Adding the functionality for the USBButtonConfigureColor would not be hard once I have the USB data format. The functionality would be in JSON configuration file format like all the other configurations. |
Hi Katie,
Here is feedback from Andy Warne on the USB data format:
The data required to be sent is very simple though. Its just a 4 byte
packet:
01
Red value
Green value
Blue value
Would it be possible to add the following function to the library?
PACDRIVE_API BOOL __stdcall USBButtonConfigureColor(INT id, BYTE red, BYTE
green, BYTE blue);
Thanks in advance,
Simon
…On Mon, Mar 20, 2017 at 9:19 PM, Katie ***@***.***> wrote:
Hi Simon,
Looking at the function information in the SDK I have most likely not
implemented that behavior. I have implemented the
USBButtonConfigurePermanent function.
Adding the functionality for the USBButtonConfigureColor would not be hard
once I have the USB data format. The functionality would be in JSON
configuration file format like all the other configurations.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZPX_1VVYXeyCLaErMcXAJwRqbCYJs4zks5rn0-5gaJpZM4Mfmtu>
.
|
I will be happy to add this to the library. Give me a couple of weeks, but I will get it in. |
Thanks Katie,
Simon
…On Thu, Apr 13, 2017 at 1:41 PM, Katie ***@***.***> wrote:
I will be happy to add this to the library. Give me a couple of weeks, but
I will get it in.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AZPX_7u9z2E-oYAjSLXTBtvwVfsA00tYks5rvoh5gaJpZM4Mfmtu>
.
|
This enhancement is in branch usbbutton. I will add to master when I create the next release. |
Thanks very much Katie -- much appreciated. Were you able to test on a physical USBbutton device?
Simon
Sent from my mobile phone.
… On Apr 24, 2017, at 3:06 PM, Katie ***@***.***> wrote:
This enhancement is in branch usbbutton. It to master when I create the next release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes I did testing on the physical device. It maintained the color until unplugged, then returned to stored color when plugged in. |
Excellent, thanks very much Katie.
Regards,
Simon
… On Apr 25, 2017, at 12:15 PM, Katie ***@***.***> wrote:
Yes I did testing on the physical device. It maintained the color until unplugged, then returned to stored color when plugged in.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Add functionality for USBButtonConfigureColor SDK function. Fixes #49
Hello,
I’m playing with the USBButton in a Linux project and would like to use the following API function that is available in the Windows lib from Ultimarc. Is this function available in the linux version of the library? If not, how difficult would it be to add?
bool USBButtonConfigureColor(char red, char green, char blue)
Thanks in advance,
Simon
The text was updated successfully, but these errors were encountered: