2024-08-19 22:43:24 +10:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace serial {
|
|
|
|
|
|
|
|
inline char buffer[16];
|
|
|
|
|
|
|
|
void init();
|
|
|
|
void read_until(char ch = ',');
|
|
|
|
float read_float(char ch = ',');
|
|
|
|
int read_int(char ch = ',');
|
2024-08-25 13:55:43 +10:00
|
|
|
long read_long(char ch = ',');
|
2024-08-19 22:43:24 +10:00
|
|
|
};
|
|
|
|
|