Skip to content

Commit

Permalink
Add occupancy UI for the light app (#25262)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed Aug 22, 2023
1 parent c904ce0 commit 927bedf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/lighting-app/linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ executable("chip-lighting-app") {
deps += [
"${chip_root}/examples/common/imgui_ui",
"${chip_root}/examples/common/imgui_ui/windows:light",
"${chip_root}/examples/common/imgui_ui/windows:occupancy_sensing",
"${chip_root}/examples/common/imgui_ui/windows:qrcode",
]
}
Expand Down
2 changes: 2 additions & 0 deletions examples/lighting-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#if defined(CHIP_IMGUI_ENABLED) && CHIP_IMGUI_ENABLED
#include <imgui_ui/ui.h>
#include <imgui_ui/windows/light.h>
#include <imgui_ui/windows/occupancy_sensing.h>
#include <imgui_ui/windows/qrcode.h>

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

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

ChipLinuxAppMainLoop(&ui);
Expand Down

0 comments on commit 927bedf

Please sign in to comment.