GY-63_MS5611/libraries/AsyncAnalog/AsyncAnalog.h

42 lines
647 B
C
Raw Normal View History

2021-01-29 06:31:58 -05:00
#pragma once
//
// FILE: AsyncAnalog.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.3
// DATE: 2018-09-05
// PURPOSE: async version of analogRead
// URL: https://github.com/RobTillaart/AsyncAnalog
//
#if !defined(ARDUINO_ARCH_AVR)
#error “AsyncAnalog library 0.1.3 only supports boards with an AVR processor .”
#else
// (ARDUINO_ARCH_SAM) future
#include "Arduino.h"
#include "wiring_private.h"
#include "pins_arduino.h"
#define ASYNCANALOG_LIB_VERSION "0.1.3"
class AsyncAnalog
{
public:
AsyncAnalog(uint8_t pin);
void start();
bool ready();
int value();
private:
uint8_t _pin;
};
#endif
// -- END OF FILE --