From 51b28577db1b7a9fc9b9ced91ac95c9d6ac8a6b6 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 10 Oct 2017 14:42:27 +0200 Subject: [PATCH] Show an example of how to override defaults Fixes #8. Signed-off-by: Gergely Nagy --- README.md | 2 ++ examples/TypingBreaks/TypingBreaks.ino | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 0226534f..f1ff660a 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ void setup (void) { Kaleidoscope.use (&TypingBreaks); Kaleidoscope.setup (); + + TypingBreaks.settings.idle_time_limit = 60; } ``` diff --git a/examples/TypingBreaks/TypingBreaks.ino b/examples/TypingBreaks/TypingBreaks.ino index f0809466..47ad8165 100644 --- a/examples/TypingBreaks/TypingBreaks.ino +++ b/examples/TypingBreaks/TypingBreaks.ino @@ -43,6 +43,8 @@ void setup() { Kaleidoscope.use(&TypingBreaks); Kaleidoscope.setup(); + + TypingBreaks.settings.idle_time_limit = 60; } void loop() {