mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
39 lines
600 B
C++
39 lines
600 B
C++
//
|
|
// FILE: printCharArray1.ino
|
|
// AUTHOR: Rob Tillaart
|
|
// PURPOSE: demo
|
|
// URL: https://github.com/RobTillaart/PrintCharArray
|
|
|
|
|
|
#include "PrintCharArray.h"
|
|
|
|
PrintCharArray ps;
|
|
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(115200);
|
|
Serial.println(__FILE__);
|
|
|
|
Serial.println(ps.available());
|
|
ps.println("Hello World");
|
|
Serial.println(ps.available());
|
|
ps.println(3.14159265, 4);
|
|
Serial.println(ps.available());
|
|
Serial.println(ps.getBuffer());
|
|
|
|
ps.clear();
|
|
ps.println(3.14159265, 4);
|
|
ps.println("Hello World");
|
|
Serial.println(ps.getBuffer());
|
|
}
|
|
|
|
|
|
void loop()
|
|
{
|
|
}
|
|
|
|
|
|
// -- END OF FILE --
|
|
|