From a7ad2c493414d1335f5250618109cc0660ba0057 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 22 Nov 2020 22:00:35 -0600 Subject: [PATCH] Update Tutorials.md --- docs/Tutorials.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/Tutorials.md b/docs/Tutorials.md index 2c677af..096e092 100644 --- a/docs/Tutorials.md +++ b/docs/Tutorials.md @@ -27,8 +27,13 @@ Example 5 expands on Example 2 by adding in the code needed to actually control * creating derived device-specific Service structures (classes) from a base HomeSpan Service class * implementing the virtual `update()` method for your derived Services * saving references to Characteristic objects with a `SpanCharacteristic *` pointer -* retrieving new and updated Characterisrtic values with the `getVal()` and `getNewVal` methods +* retrieving new and updated Characteristic values with the `getVal()` and `getNewVal()` methods +### [Example 6 - DimmableLED](../examples/06-DimmableLED/06-DimmableLED.ino) +Example 6 changes Example 5 so that LED #2 is now dimmable, instead of just on/off. New HomeSpan API topics covered in this example include: + +* implementing pulse-width-modulation on any ESP32 pin by instantiating a `PwmPin()` object +* setting the PWM level to control the brightness of an using the PwmPin `set()` method