Skip to content

Commit bcfe523

Browse files
Add headers to examples.
1 parent 5f5c00f commit bcfe523

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

examples/default_to_serial/default_to_serial.ino

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* This sketch demonstrates using the ArduinoPrintf library with the default setup,
3+
* which requires no initialization. The Serial class will be used as the output
4+
* for the ArduinoPrintf library.
5+
*
6+
* You are still responsible for initializing the Print class in setup(), the
7+
* ArduinoPrintf library will not do that for you.
8+
*/
9+
110
#include <ArduinoPrintf.h>
211

312
void setup() {

examples/override_putchar/override_putchar.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* This sketch demonstrates the ability to override the ArduinoPrintf library's
3+
* default implementation of _putchar() with a custom user implementation.
4+
* You can do anything you want in your _putchar() function: output to multiple ports,
5+
* filter data, add extra characters, etc.
6+
*/
7+
18
#include <ArduinoPrintf.h>
29

310
void setup() {

examples/specify_print_class/specify_print_class.ino

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* This sketch demonstrates using the ArduinoPrintf library with a custom
3+
* Print class of your choice. Call printf_init() with the desired output class.
4+
* Any class which has Print as a base class can be used.
5+
*
6+
* You are still responsible for initializing the Print class in setup(), the
7+
* ArduinoPrintf library will not do that for you.
8+
*/
9+
110
#include <ArduinoPrintf.h>
211

312
void setup() {

0 commit comments

Comments
 (0)