fork/GramFirmware
git clone https://git.julia.blue/fork/GramFirmware
38b67d3
v0.1.0
1#ifndef _INPUT_NUNCHUKINPUT_HPP 2#define _INPUT_NUNCHUKINPUT_HPP 3 4#include "core/InputSource.hpp" 5 6#include <ArduinoNunchuk.hpp> 7#include <Wire.h> 8 9class NunchukInput :public InputSource { 10public : 11NunchukInput (TwoWire & wire = Wire ,int detect_pin = -1 ,int sda_pin = 4 ,int scl_pin = 5 ); 12 ~NunchukInput (); 13InputScanSpeed ScanSpeed (); 14void UpdateInputs (InputState & inputs ); 15 16protected : 17ArduinoNunchuk * _nunchuk ; 18}; 19 20#endif