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. --- .../nunchuk/wii_nunchuk_orientation_horizontal_right.output | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_right.output (limited to 'decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_right.output') diff --git a/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_right.output b/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_right.output new file mode 100644 index 0000000..9f42398 --- /dev/null +++ b/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_right.output @@ -0,0 +1,11 @@ +481430-481513 nunchuk: reg-0x00: "Analog stick X position: 0x75" "SX: 0x75" +481603-481685 nunchuk: reg-0x01: "Analog stick Y position: 0x7F" "SY: 0x7F" +481778-481860 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x23C" "AX[9:2]: 0x23C" +481960-482042 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x1F8" "AY[9:2]: 0x1F8" +482138-482220 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x1D4" "AZ[9:2]: 0x1D4" +482398-482408 nunchuk: bit-bz: "Z: not pressed" "BZ: 1" +482388-482398 nunchuk: bit-bc: "C: not pressed" "BC: 1" +482367-482388 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x2" "AX[1:0]: 0x2" +482347-482367 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x0" "AY[1:0]: 0x0" +482326-482347 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x1" "AZ[1:0]: 0x1" +481430-482512 nunchuk: summary: "Analog stick: 117/127, accelerometer: 574/504/469, Z: not pressed, C: not pressed" -- cgit v1.2.3-54-g00ecf