Update Tutorials.md

This commit is contained in:
HomeSpan 2020-11-23 07:37:22 -06:00 committed by GitHub
parent 6f488628be
commit 44566535ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ Example 9 illustrates how to add log messages to your HomeSpan sketch. The code
* using the `LOG1()` and `LOG2()` macros to create log messages for different log levels * using the `LOG1()` and `LOG2()` macros to create log messages for different log levels
* setting the initial log level for a sketch with the `homeSpan.setLogLevel()` method * setting the initial log level for a sketch with the `homeSpan.setLogLevel()` method
### [Example 10 - RGB_LED](../examples/10-RGB_LED/10-RGB_LED.ino)
Example 10 illustrates how to control an RGB LED to set any color and brightness. New HomeSpan API topics covered in this example include:
* converting HomeKit Hue/Saturation/Brightness levels to Red/Green/Blue levels using `PwmPin::HSVtoRGB()`
* using the optional template functionality of `getVal()`, such as `getVal<float>()`
--- ---