From 41aca53777324ce9c8bd5a651b8fad002c0da2e4 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 22 Aug 2015 18:23:31 +0200 Subject: nunchuk: Add a few test-cases. --- decoder/test/nunchuk/wii_nunchuk_data_button_z.output | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 decoder/test/nunchuk/wii_nunchuk_data_button_z.output (limited to 'decoder/test/nunchuk/wii_nunchuk_data_button_z.output') diff --git a/decoder/test/nunchuk/wii_nunchuk_data_button_z.output b/decoder/test/nunchuk/wii_nunchuk_data_button_z.output new file mode 100644 index 0000000..37aec23 --- /dev/null +++ b/decoder/test/nunchuk/wii_nunchuk_data_button_z.output @@ -0,0 +1,11 @@ +697112-697194 nunchuk: reg-0x00: "Analog stick X position: 0x75" "SX: 0x75" +697285-697369 nunchuk: reg-0x01: "Analog stick Y position: 0x7F" "SY: 0x7F" +697463-697547 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x200" "AX[9:2]: 0x200" +697645-697727 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x1E0" "AY[9:2]: 0x1E0" +697823-697905 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x190" "AZ[9:2]: 0x190" +698084-698095 nunchuk: bit-bz: "Z: pressed" "BZ: 0" +698073-698084 nunchuk: bit-bc: "C: pressed" "BC: 0" +698053-698073 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x3" "AX[1:0]: 0x3" +698032-698053 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x2" "AY[1:0]: 0x2" +698012-698032 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x1" "AZ[1:0]: 0x1" +697112-698198 nunchuk: summary: "Analog stick: 117/127, accelerometer: 515/482/401, Z: pressed, C: pressed" -- cgit v1.2.3-54-g00ecf