Stream console{&huart6};
console.write("hello");
console.writeln("world");
console.write(100500);
console << "hello" << 123;
if (console.available()) {
char buf[128];
if (int res = readln(buf); res > 0) {
console << res << " bytes read;
} else {
console << "error" << res;
}
console << etl::endl;
const auto str = console.readString();
console << "echo: " << str.data() << etl::endl;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
arman-novikov/STMStream
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
USART Facade class
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published