mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 16:56:35 +00:00
Support for wiz smart button
This commit is contained in:
parent
6a793536dd
commit
2812eaa13d
@ -14,6 +14,11 @@
|
|||||||
#define WIZMOTE_BUTTON_BRIGHT_UP 9
|
#define WIZMOTE_BUTTON_BRIGHT_UP 9
|
||||||
#define WIZMOTE_BUTTON_BRIGHT_DOWN 8
|
#define WIZMOTE_BUTTON_BRIGHT_DOWN 8
|
||||||
|
|
||||||
|
#define WIZ_SMART_BUTTON_ON 100
|
||||||
|
#define WIZ_SMART_BUTTON_OFF 101
|
||||||
|
#define WIZ_SMART_BUTTON_BRIGHT_UP 102
|
||||||
|
#define WIZ_SMART_BUTTON_BRIGHT_DOWN 103
|
||||||
|
|
||||||
// This is kind of an esoteric strucure because it's pulled from the "Wizmote"
|
// This is kind of an esoteric strucure because it's pulled from the "Wizmote"
|
||||||
// product spec. That remote is used as the baseline for behavior and availability
|
// product spec. That remote is used as the baseline for behavior and availability
|
||||||
// since it's broadly commercially available and works out of the box as a drop-in
|
// since it's broadly commercially available and works out of the box as a drop-in
|
||||||
@ -210,6 +215,10 @@ void handleRemote(uint8_t *incomingData, size_t len) {
|
|||||||
case WIZMOTE_BUTTON_NIGHT : activateNightMode(); break;
|
case WIZMOTE_BUTTON_NIGHT : activateNightMode(); break;
|
||||||
case WIZMOTE_BUTTON_BRIGHT_UP : brightnessUp(); break;
|
case WIZMOTE_BUTTON_BRIGHT_UP : brightnessUp(); break;
|
||||||
case WIZMOTE_BUTTON_BRIGHT_DOWN : brightnessDown(); break;
|
case WIZMOTE_BUTTON_BRIGHT_DOWN : brightnessDown(); break;
|
||||||
|
case WIZ_SMART_BUTTON_ON : setOn(); break;
|
||||||
|
case WIZ_SMART_BUTTON_OFF : setOff(); break;
|
||||||
|
case WIZ_SMART_BUTTON_BRIGHT_UP : brightnessUp(); break;
|
||||||
|
case WIZ_SMART_BUTTON_BRIGHT_DOWN : brightnessDown(); break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
last_seq = cur_seq;
|
last_seq = cur_seq;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user