Restructuring and cleaning out unnecessary files

This commit is contained in:
Gunnar Skjold
2019-12-12 19:23:15 +01:00
parent 4cd1fa87d1
commit 5680b5a501
272 changed files with 51 additions and 227251 deletions

23
lib/HanReader/src/Crc16.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef _CRC16_h
#define _CRC16_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
class Crc16Class
{
public:
Crc16Class();
unsigned short ComputeChecksum(byte *data, int start, int length);
protected:
private:
const unsigned short polynomial = 0x8408;
unsigned short table[256];
};
#endif