Works with returning 12 bit as expected
Signed-off-by: fly <merspieler@alwaysdata.com>
This commit is contained in:
parent
7bdc627898
commit
0bdb9ab4ec
2 changed files with 29 additions and 29 deletions
|
@ -24,7 +24,7 @@ pub const CUSTOM_DESCRIPTOR: &[u8] = &[
|
|||
0x09, 0x30, // UsageId(X[0x0030])
|
||||
0x09, 0x32, // UsageId(Z[0x0032])
|
||||
0x15, 0x00, // LogicalMinimum(0)
|
||||
0x27, 0xFF, 0xFF, 0x00, 0x00, // LogicalMaximum(65,535)
|
||||
0x26, 0xFF, 0x0F, // LogicalMaximum(4,095)
|
||||
0x95, 0x02, // ReportCount(2)
|
||||
0x75, 0x10, // ReportSize(16)
|
||||
0x81, 0x02, // Input(Data, Variable, Absolute, NoWrap, Linear, PreferredState, NoNullPosition, BitField)
|
||||
|
|
|
@ -137,8 +137,8 @@ fn get_report(pins: &mut MyPins, adc1: &mut adc::Adc<pac::ADC1>) -> CustomInputR
|
|||
|
||||
|
||||
CustomInputReport {
|
||||
x: retX.into(),
|
||||
y: retY.into(),
|
||||
x: integLT.into(),
|
||||
y: floodLT.into(),
|
||||
buttons,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue