Pad controls
Closed this issue · 18 comments
I'm trying to use completely the pad but I'm having problems, I do not know how to use the analog right (R3) for direction down... May you help me? I would prefer in a similar way as it is here: https://github.com/HACKERCHANNEL/PSL1GHT/blob/master/include/io/pad.h Thanks.
What do you mean? Why can't you use it?
It is BTN_R3
That is for pressure, I want when an user moves analog right to down.
Unless you are talking about:
unsigned int ANA_R_H : 16;
unsigned int ANA_R_V : 16;
In that case you need to process the data yourself.
How can I do it?
Look at ANA_R_V, that will give a a value between 0 and 255 (inclusive). 0 being all the way at the top, and 255 being all the way at the bottom. If you check that ANA_R_V is > 200 it should count as down.
P.S. R3 has no pressure sensitive data.
Ok but then I have for example change 16 to 200? unsigned int ANA_R_V : 200;
What? No. Don't touch pad.h. That just defines the amount of bits.
Ah ok.
Have you played around with any pad tests etc?
No.
Maybe you should do that?
How would you suggest me to do it in the better way?
Do you know how to code?
Yes.
Then just code an example? Or look at the pad test sample ?
Ok thanks.