add more projects

This commit is contained in:
2021-08-05 13:24:20 +09:00
parent 20c4a0fa7f
commit b52e63903a
12 changed files with 966 additions and 0 deletions

19
crc16_test/crc16_test.ino Normal file
View File

@@ -0,0 +1,19 @@
# include "crc16.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
byte array[] = {0x7e, 0x01, 0x01, 0x00, 0x00};
unsigned int crc16 = crc(array, 3);
byte high = highByte(crc16);
byte low = lowByte(crc16);
Serial.print(crc16, HEX); Serial.print(" = ");
Serial.print(high, HEX); Serial.print(" ");
Serial.println(low, HEX);
delay(5000);
}