1
0
mirror of https://github.com/AlexGyver/GyverCore.git synced 2025-04-19 08:42:16 +03:00
GyverCore/examples/parseTest/parseTest.ino
2019-09-11 12:08:50 +03:00

17 lines
296 B
C++

int dataArray[8];
void setup() {
uart.begin(); // открыть на 9600
}
void loop() {
// $10 21 458 63 8 45 875 215;
if (uart.parsePacket((int*)dataArray)) {
for (byte i = 0; i < 8; i++) {
uart.print(dataArray[i]);
uart.print(" ");
}
uart.println();
}
}