Skip to content

Commit 1466260

Browse files
andy31415pull[bot]
authored andcommitted
Add occupancy UI for the light app (#25262)
1 parent fb586b7 commit 1466260

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

examples/lighting-app/linux/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ executable("chip-lighting-app") {
5151
deps += [
5252
"${chip_root}/examples/common/imgui_ui",
5353
"${chip_root}/examples/common/imgui_ui/windows:light",
54+
"${chip_root}/examples/common/imgui_ui/windows:occupancy_sensing",
5455
"${chip_root}/examples/common/imgui_ui/windows:qrcode",
5556
]
5657
}

examples/lighting-app/linux/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#if defined(CHIP_IMGUI_ENABLED) && CHIP_IMGUI_ENABLED
3131
#include <imgui_ui/ui.h>
3232
#include <imgui_ui/windows/light.h>
33+
#include <imgui_ui/windows/occupancy_sensing.h>
3334
#include <imgui_ui/windows/qrcode.h>
3435

3536
#endif
@@ -94,6 +95,7 @@ int main(int argc, char * argv[])
9495
example::Ui::ImguiUi ui;
9596

9697
ui.AddWindow(std::make_unique<example::Ui::Windows::QRCode>());
98+
ui.AddWindow(std::make_unique<example::Ui::Windows::OccupancySensing>(chip::EndpointId(1), "Occupancy"));
9799
ui.AddWindow(std::make_unique<example::Ui::Windows::Light>(chip::EndpointId(1)));
98100

99101
ChipLinuxAppMainLoop(&ui);

0 commit comments

Comments
 (0)