MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onCreate

Method onCreate

Tactility/Source/app/setup/Setup.cpp:134–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132public:
133
134 void onCreate(AppContext& app) override {
135 steps = {
136 {
137 .title = "Time Zone Setup",
138 .description = "Let's set the time zone.",
139 .run = [] { timezone::start(true); }
140 },
141 {
142 .title = "Wi-Fi Setup",
143 .description = "Let's connect to a Wi-Fi access point.",
144 .run = [] {
145 service::wifi::setEnabled(true);
146 wifimanage::start();
147 }
148 }
149 };
150 }
151
152 void onShow(AppContext& app, lv_obj_t* parent) override {
153 titleLabel = lv_label_create(parent);

Callers

nothing calls this directly

Calls 2

startFunction · 0.70
setEnabledFunction · 0.50

Tested by

no test coverage detected