Renumbered Examples

Renumbered Example 11 (RGB_LED) to Example 10; Example 12 (ServiceOptions) to Example 11; Example 13 (ServiceLoops) to Example 12; and Example 14 (TargetStates) to Example 13.  Example 14 is now the PushButton example (previously the TimedReset Example).

To do:  Must update Door and Window code in Example 13 (TargetStates) to utilize new loop() framework.  Must also delete all references to TimedResets in library code.
This commit is contained in:
Gregg 2020-08-17 07:14:01 -05:00
parent d5ff5c506d
commit a905ac4ef3
12 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
// HomeSpan: A HomeKit implementation for the ESP32 //
// ------------------------------------------------ //
// //
// Example 11: Controlling a full-color RGB LED //
// Example 10: Controlling a full-color RGB LED //
// //
// //
////////////////////////////////////////////////////////////
@ -15,7 +15,7 @@
void setup() {
// Example 11 illustrates how to control an RGB LED to set any color and brightness.
// Example 10 illustrates how to control an RGB LED to set any color and brightness.
// The configuration below should look familiar by now. We've created a new derived Service,
// call RgbLED to house all the required logic. You'll find all the code in DEV_LED.h.
// For completeness, this configuration also contains an on/off LED and a dimmable LED as shown

View File

@ -4,7 +4,7 @@
// HomeSpan: A HomeKit implementation for the ESP32 //
// ------------------------------------------------ //
// //
// Example 12: Service Options: //
// Example 11: Service Options: //
// * setting the Primary Service //
// * setting Service Names //
// //

View File

@ -4,7 +4,7 @@
// HomeSpan: A HomeKit implementation for the ESP32 //
// ------------------------------------------------ //
// //
// Example 13: Service Loops (and Event Notifications) //
// Example 12: Service Loops (and Event Notifications) //
// * implementing a Temperature Sensor //
// * implementing an Air Quality Sensor //
// //
@ -25,7 +25,7 @@ void setup() {
// your derived Service. At the end of each HomeSpan polling cycle, the loop() method is called for each Service that implements its own code.
// In this fashion, the loop() method is similar to the main loop() method in the Arduino IDE itself - except it can be customized for each Service.
// In this Example 13 we explore the use of loop() methods to implement two new accessories - a Temperature Sensor and an Air Quality Sensor. Of course
// In this Example 12 we explore the use of loop() methods to implement two new accessories - a Temperature Sensor and an Air Quality Sensor. Of course
// we won't actually have these physical devices attached to the ESP32 for the purpoe of this example, but we will simulate "reading" their properties.
// This is one of the main purposes of implementing a loop() method. It allows you to read a sensor or perform some sort of repetitive, Service-specific
// action.

View File

@ -4,7 +4,7 @@
// HomeSpan: A HomeKit implementation for the ESP32 //
// ------------------------------------------------ //
// //
// Example 14: Target States and Current States //
// Example 13: Target States and Current States //
// //
////////////////////////////////////////////////////////////