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

Virtual device #41

Merged
merged 122 commits into from Oct 2, 2017
Commits
Jump to file or symbol
Failed to load files and symbols.
+6 −0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

ctlra: add led strip and params to item info

Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
  • Loading branch information...
harryhaaren committed Sep 11, 2017
commit 144db2d521695847a551e025f7abb21b6bb0d6da
Copy path View file
@@ -115,8 +115,12 @@ typedef const char *(*ctlra_info_get_name_func)(enum ctlra_event_type_t type,
#define CTLRA_ITEM_DIAL (1<< 2)
#define CTLRA_ITEM_ENCODER (1<< 3)
#define CTLRA_ITEM_CENTER_NOTCH (1<< 4)
#define CTLRA_ITEM_LED_INTENSITY (1<< 5)
#define CTLRA_ITEM_LED_COLOR (1<< 6)
#define CTLRA_ITEM_FB_LED_STRIP (1<< 7)
#define CTLRA_ITEM_HAS_FB_ID (1<<31)
struct ctlra_item_info_t {
uint32_t x; /* location of item on X axis */
@@ -131,6 +135,8 @@ struct ctlra_item_info_t {
* with this light_id should result the the LED under the item
* changing state */
uint32_t fb_id;
/* feedback parameters depending on flags */
uint8_t params[4];
};
/** A struct describing the properties of a grid */
ProTip! Use n and p to navigate between commits in a pull request.