I am attempting to create a keypad driver. I have the basic skeleton done, and I am trying to programmatically add buttons but they do not seem to be getting added.
My driver XML looks like this (other details omitted).
I am unsure about capabilities associated with keypads. Those are my best guess.
Also, my num_buttons might be completely wrong as the documentation looks like it implies there are only 4 values?
I'd appreciate some guidance or a keypad example project. I could probably create a driver from scratch that does what I need, but I was hoping to use the Keypad API.
I am attempting to create a keypad driver. I have the basic skeleton done, and I am trying to programmatically add buttons but they do not seem to be getting added.
My driver XML looks like this (other details omitted).
I am unsure about capabilities associated with keypads. Those are my best guess. Also, my
num_buttons
might be completely wrong as the documentation looks like it implies there are only 4 values?I attempt to add a test button like this:
I'd appreciate some guidance or a keypad example project. I could probably create a driver from scratch that does what I need, but I was hoping to use the Keypad API.