Use PropWare's PropWare::Printer interface for easy formatting of text, but use Simple's serial driver. This combination allows for easy object-oriented programming while still using the Parallax-authored serial driver.
cmake_minimum_required(VERSION 3.12)
project(Hybrid_Demo)
create_simple_executable(${PROJECT_NAME} Hybrid_Demo.cpp)
public:
}
virtual void puts (
char const string[]) {
}
};
const Printer myPrinter(mySimpleCompatiblePrinter);
putStr(
"Hello from the Simple function!\n");
myPrinter.puts("Hello from PropWare's Printer!\n");
myPrinter.print("Hello from yet another Printer function!\n");
myPrinter.printf("All methods have their own merits. Choose one that works well for you.\n");
myPrinter.println("Printer::println() can be handy if you just want to print a single string");
myPrinter << "For lovers of C++ streams, you can even use the << operator!\n";
return 0;
}
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
void putChar(char c)
Print a char to the debug port.
int putStr(const char *str)
Print string to the debug port.