Loading files
#pragma once
#if defined(ESP32) || defined(ESP8266)
#include "Device/InputDevice.h"
#include <EspNowRcLink/Receiver.h>
#include <cstdint>
#include <cstddef>
namespace Espfc {
namespace Device {
class InputEspNow: public InputDevice
{
public:
int begin(void);
InputStatus update() override;
uint16_t get(uint8_t i) const override;
void get(uint16_t * data, size_t len) const override;
size_t getChannelCount() const override;
bool needAverage() const override;
private:
EspNowRcLink::Receiver _rx;
static constexpr size_t CHANNELS = EspNowRcLink::RC_CHANNEL_MAX + 1;
uint16_t _channels[CHANNELS];
};
}
}
#endif2cb77771fThis file is pinned to the selected release. Download the original to open it in your design tool.