25 lines
369 B
C++
Executable file
25 lines
369 B
C++
Executable file
/*
|
|
WiiNun.h
|
|
(c)2012 kou029w - MIT License [http://kou029w.appspot.com/mit-license.txt]
|
|
*/
|
|
|
|
#ifndef WiiNun_h
|
|
#define WiiNun_h
|
|
|
|
#if defined(ARDUINO) && ARDUINO >= 100
|
|
#include <Arduino.h>
|
|
#else
|
|
#include <WProgram.h>
|
|
#endif
|
|
#include <Wire.h>
|
|
|
|
class WiiNun{
|
|
public:
|
|
byte data[6];
|
|
void begin();
|
|
void get();
|
|
private:
|
|
byte _decodeByte(byte x);
|
|
};
|
|
|
|
#endif
|