GY-63_MS5611/libraries/DistanceTable/DistanceTable.h
rob tillaart 6ef02ae9a9 + distanceTable initial version
+ refactor
+ testsketch
2015-06-19 21:06:14 +02:00

36 lines
612 B
C++

//
// FILE: DistanceTable.h
// AUTHOR: Rob Tillaart
// VERSION: 0.1.01
// PURPOSE: memory efficient DistanceTable for Arduino
// URL:
//
// Released to the public domain
//
#ifndef DistanceTable_h
#define DistanceTable_h
#include "Arduino.h"
#define DISTANCETABLE_LIB_VERSION "0.1.01"
class DistanceTable
{
public:
DistanceTable(uint8_t);
~DistanceTable();
void clear();
void set(uint8_t x, uint8_t y, double value );
double get(uint8_t x, uint8_t y);
void dump();
protected:
int _error;
uint8_t _size;
double * _distanceTable;
};
#endif
// --- END OF FILE ---