wii_ext/lib.rs
1#![doc = include_str!("../README.md")]
2// See https://www.raphnet-tech.com/support/classic_controller_high_res/ for data on high-precision mode
3
4// Abridged version of the above:
5// To enable High Resolution Mode, you simply write 0x03 to address 0xFE in the extension controller memory.
6// Then you poll the controller by reading 8 bytes at address 0x00 instead of only 6.
7// You can also restore the original format by writing the original value back to address 0xFE at any time.
8//
9// Classic mode:
10// http://wiibrew.org/wiki/Wiimote/Extension_Controllers/Classic_Controller
11//
12// See `decode_classic_report` and `decode_classic_hd_report` for data format
13//
14// The nunchuk portion of this crate is derived from
15// https://github.com/rust-embedded/rust-i2cdev/blob/master/examples/nunchuck.rs
16// which is Copyright 2015, Paul Osborne <osbpau@gmail.com>
17#![cfg_attr(not(test), no_std)]
18
19/// Async I2C implementations
20pub mod async_impl;
21
22/// Blocking I2C implementations
23pub mod blocking_impl;
24/// Types + data decoding
25pub mod core;