MCPcopy Create free account
hub / github.com/Santroller/Santroller / AccelerometerInput

Class AccelerometerInput

include/input/accelerometer.hpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <memory>
5#pragma once
6class AccelerometerInput: public Input {
7 public:
8 AccelerometerInput(proto_AccelerometerInput input, std::shared_ptr<AccelerometerDevice> device);
9 bool tickDigital();
10 uint16_t tickAnalog();
11 private:
12 void setup();
13 uint8_t m_channel;
14 proto_AccelerometerInput m_input;
15 std::shared_ptr<AccelerometerDevice> m_device;
16};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected