Skip to content

Commit 19a539d

Browse files
Apply requested changes
1 parent e046998 commit 19a539d

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/en/zigbee/ep_temperature_dimmable_light.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
###############################
1+
##############################
22
ZigbeeTemperatureDimmableLight
3-
###############################
3+
##############################
44

55
About
66
-----
@@ -84,14 +84,14 @@ Sets the light brightness level.
8484

8585
Returns ``true`` if successful, ``false`` otherwise.
8686

87-
setColorTemperature
87+
setLightTemperature
8888
^^^^^^^^^^^^^^^^^^^
8989

9090
Sets the light color temperature (in mireds).
9191

9292
.. code-block:: arduino
9393
94-
bool setColorTemperature(uint16_t mireds);
94+
bool setLightTemperature(uint16_t mireds);
9595
9696
* ``mireds`` - Color temperature in mireds (153 = 6500K, 500 = 2000K)
9797

@@ -151,14 +151,14 @@ Gets the current brightness level.
151151
152152
Returns current brightness level (0-255).
153153

154-
getColorTemperature
154+
getLightTemperature
155155
^^^^^^^^^^^^^^^^^^^
156156

157157
Gets the current color temperature (in mireds).
158158

159159
.. code-block:: arduino
160160
161-
uint16_t getColorTemperature();
161+
uint16_t getLightTemperature();
162162
163163
Returns current color temperature in mireds.
164164

libraries/Zigbee/examples/Zigbee_Temperature_Dimmable_Light/Zigbee_Temperature_Dimmable_Light.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @brief This example demonstrates Zigbee Temperature Dimmable light bulb.
1717
*
1818
* The example demonstrates how to use Zigbee library to create an end device with
19-
* temperature dimmable light end point.
19+
* temperature dimmable light endpoint.
2020
* The light bulb is a Zigbee end device, which is controlled by a Zigbee coordinator.
2121
*
2222
* Proper Zigbee mode must be selected in Tools->Zigbee mode
@@ -33,7 +33,7 @@
3333

3434
#include "Zigbee.h"
3535

36-
#define ZIGBEE_TEMP_LIGHT_ENDPOINT 11
36+
#define ZIGBEE_TEMP_LIGHT_ENDPOINT 1
3737
uint8_t led = RGB_BUILTIN;
3838
uint8_t button = BOOT_PIN;
3939

libraries/Zigbee/src/Zigbee.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#include "ep/ZigbeeSwitch.h"
3030
//// Lights
3131
#include "ep/ZigbeeColorDimmableLight.h"
32-
#include "ep/ZigbeeTemperatureDimmableLight.h"
3332
#include "ep/ZigbeeDimmableLight.h"
3433
#include "ep/ZigbeeLight.h"
34+
#include "ep/ZigbeeTemperatureDimmableLight.h"
3535
//// Controllers
3636
#include "ep/ZigbeeThermostat.h"
3737
#include "ep/ZigbeeFanControl.h"

libraries/Zigbee/src/ep/ZigbeeTemperatureDimmableLight.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool ZigbeeTemperatureDimmableLight::setLightLevel(uint8_t level) {
150150
return setLight(_current_state, level, _current_color_temperature);
151151
}
152152

153-
bool ZigbeeTemperatureDimmableLight::setColorTemperature(uint16_t mireds) {
153+
bool ZigbeeTemperatureDimmableLight::setLightTemperature(uint16_t mireds) {
154154
return setLight(_current_state, _current_level, mireds);
155155
}
156156

libraries/Zigbee/src/ep/ZigbeeTemperatureDimmableLight.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ZigbeeTemperatureDimmableLight : public ZigbeeEP {
8989

9090
bool setLightState(bool state);
9191
bool setLightLevel(uint8_t level);
92-
bool setColorTemperature(uint16_t mireds);
92+
bool setLightTemperature(uint16_t mireds);
9393
bool setLight(bool state, uint8_t level, uint16_t mireds);
9494

9595
bool getLightState() {
@@ -98,7 +98,7 @@ class ZigbeeTemperatureDimmableLight : public ZigbeeEP {
9898
uint8_t getLightLevel() {
9999
return _current_level;
100100
}
101-
uint16_t getColorTemperature() {
101+
uint16_t getLightTemperature() {
102102
return _current_color_temperature;
103103
}
104104

0 commit comments

Comments
 (0)