Skip to content

Commit

Permalink
example updates, Arduino compatible header
Browse files Browse the repository at this point in the history
  • Loading branch information
davetcc committed Sep 22, 2024
1 parent 3377614 commit f81a19b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/ioLogging/ioLogging.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
*
* This logging is only complied in when the above define is set, if it is not set then
* the logging is completely removed.
*
* Full documentation is here:
* https://tcmenu.github.io/documentation/arduino-libraries//io-abstraction/arduino-logging-with-io-logging/
*/

/* The logging levels are below:
Expand Down
5 changes: 4 additions & 1 deletion examples/textUtilities/textUtilities.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* This logging is only complied in when the above define is set, if it is not set then
* the logging is completely removed.
*
* Documentation link:
* https://tcmenu.github.io/documentation/arduino-libraries/io-abstraction/text-utilities-and-helpers/
* https://tcmenu.github.io/documentation/arduino-libraries//io-abstraction/arduino-logging-with-io-logging/
*/

#include <IoLogging.h>
Expand All @@ -17,7 +20,7 @@ char sz[32] = {0};

void setup() {
// This example logs using IoLogging, see the following guide to enable
// https://www.thecoderscorner.com/products/arduino-libraries/io-abstraction/arduino-logging-with-io-logging/
// https://tcmenu.github.io/documentation/arduino-libraries//io-abstraction/arduino-logging-with-io-logging/
IOLOG_START_SERIAL

// convert 102934 to 8 decimal places not padded.
Expand Down
7 changes: 7 additions & 0 deletions src/TcMenuLog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#ifndef TC_MENU_LOG_H
#define TC_MENU_LOG_H

// simply include the IoLogging file, this allows the header to match the library name
#include "IoLogging.h"

#endif //TC_MENU_LOG_H

0 comments on commit f81a19b

Please sign in to comment.