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_left.output | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_left.output (limited to 'decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_left.output') diff --git a/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_left.output b/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_left.output new file mode 100644 index 0000000..84b96d9 --- /dev/null +++ b/decoder/test/nunchuk/wii_nunchuk_orientation_horizontal_left.output @@ -0,0 +1,11 @@ +874049-874131 nunchuk: reg-0x00: "Analog stick X position: 0x75" "SX: 0x75" +874225-874307 nunchuk: reg-0x01: "Analog stick Y position: 0x7F" "SY: 0x7F" +874400-874482 nunchuk: reg-0x02: "Accelerometer X value bits[9:2]: 0x094" "AX[9:2]: 0x094" +874582-874664 nunchuk: reg-0x03: "Accelerometer Y value bits[9:2]: 0x1F8" "AY[9:2]: 0x1F8" +874762-874844 nunchuk: reg-0x04: "Accelerometer Z value bits[9:2]: 0x1EC" "AZ[9:2]: 0x1EC" +875020-875030 nunchuk: bit-bz: "Z: not pressed" "BZ: 1" +875010-875020 nunchuk: bit-bc: "C: not pressed" "BC: 1" +874989-875010 nunchuk: bit-ax: "Accelerometer X value bits[1:0]: 0x2" "AX[1:0]: 0x2" +874969-874989 nunchuk: bit-ay: "Accelerometer Y value bits[1:0]: 0x2" "AY[1:0]: 0x2" +874948-874969 nunchuk: bit-az: "Accelerometer Z value bits[1:0]: 0x3" "AZ[1:0]: 0x3" +874049-875134 nunchuk: summary: "Analog stick: 117/127, accelerometer: 150/506/495, Z: not pressed, C: not pressed" -- cgit v1.2.3-54-g00ecf