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

36 lines
621 B
C
Raw Normal View History

//
// FILE: DistanceTable.h
// AUTHOR: Rob Tillaart
2017-07-27 10:24:22 -04:00
// VERSION: 0.1.3
// PURPOSE: memory efficient DistanceTable for Arduino
// URL:
//
// Released to the public domain
//
#ifndef DistanceTable_h
#define DistanceTable_h
#include "Arduino.h"
2017-07-27 10:24:22 -04:00
#define DISTANCETABLE_LIB_VERSION "0.1.3"
class DistanceTable
{
public:
explicit DistanceTable(uint8_t);
~DistanceTable();
void clear();
2017-07-27 10:24:22 -04:00
void set(uint8_t x, uint8_t y, float value );
float get(uint8_t x, uint8_t y);
void dump();
protected:
uint8_t _size;
uint16_t _store;
2017-07-27 10:24:22 -04:00
float * _distanceTable;
};
#endif
// --- END OF FILE ---