2017-12-09 14:39:12 -05:00
|
|
|
//
|
|
|
|
// FILE: printCharArray1.ino
|
|
|
|
// AUTHOR: Rob Tillaart
|
|
|
|
// PURPOSE: demo
|
2020-11-27 05:28:57 -05:00
|
|
|
// URL: https://github.com/RobTillaart/PrintCharArray
|
2021-11-13 10:35:33 -05:00
|
|
|
|
2017-12-09 14:39:12 -05:00
|
|
|
|
|
|
|
#include "PrintCharArray.h"
|
|
|
|
|
|
|
|
PrintCharArray ps;
|
|
|
|
|
2021-11-13 10:35:33 -05:00
|
|
|
|
2017-12-09 14:39:12 -05:00
|
|
|
void setup()
|
|
|
|
{
|
|
|
|
Serial.begin(115200);
|
|
|
|
Serial.println(__FILE__);
|
|
|
|
|
2021-01-29 06:31:58 -05:00
|
|
|
Serial.println(ps.available());
|
2017-12-09 14:39:12 -05:00
|
|
|
ps.println("Hello World");
|
2021-01-29 06:31:58 -05:00
|
|
|
Serial.println(ps.available());
|
2017-12-09 14:39:12 -05:00
|
|
|
ps.println(3.14159265, 4);
|
2021-01-29 06:31:58 -05:00
|
|
|
Serial.println(ps.available());
|
2017-12-09 14:39:12 -05:00
|
|
|
Serial.println(ps.getBuffer());
|
|
|
|
|
|
|
|
ps.clear();
|
|
|
|
ps.println(3.14159265, 4);
|
|
|
|
ps.println("Hello World");
|
|
|
|
Serial.println(ps.getBuffer());
|
|
|
|
}
|
|
|
|
|
2021-11-13 10:35:33 -05:00
|
|
|
|
2017-12-09 14:39:12 -05:00
|
|
|
void loop()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-11-13 10:35:33 -05:00
|
|
|
|
2020-11-27 05:28:57 -05:00
|
|
|
// -- END OF FILE --
|
2021-11-13 10:35:33 -05:00
|
|
|
|