fork/GramFirmware

git clone https://git.julia.blue/fork/GramFirmware

Jonathan HaylettNintendo Switch USB support (#20)38b67d3

master
444 B20 linesraw
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 {
10  public:
11    NunchukInput(TwoWire &wire = Wire, int detect_pin = -1, int sda_pin = 4, int scl_pin = 5);
12    ~NunchukInput();
13    InputScanSpeed ScanSpeed();
14    void UpdateInputs(InputState &inputs);
15
16  protected:
17    ArduinoNunchuk *_nunchuk;
18};
19
20#endif