Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<typename T> T BusPrint(T v)
- {
- Serial.print(v);
- }
- template<typename T, typename... Args> T BusPrint(T first, Args... args)
- {
- BusPrint(first);
- BusPrint(args...);
- }
- template<typename T, typename... Args> T BusPrintLn(T first, Args... args)
- {
- BusPrint(args...);
- Serial.println(F(""));
- }
- void setup()
- {
- Serial.begin(115200);
- BusPrint("Hiermee kun je een ", 456, " of een ", 182.17274, " printen in slechts ", '1', " function call");
- }
- void loop()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement