MCPcopy Create free account
hub / github.com/BruceDevices/firmware / setiButtonPinMenu

Function setiButtonPinMenu

src/modules/others/ibutton.cpp:419–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417// ---------------------------------------------------------------------------
418
419void setiButtonPinMenu() {
420 options = {};
421 gpio_num_t sel = GPIO_NUM_NC;
422 for (int8_t i = -1; i <= GPIO_NUM_MAX; i++) {
423 String label = "GPIO " + String(i);
424 options.push_back({label.c_str(), [i, &sel]() { sel = (gpio_num_t)i; }});
425 }
426 loopOptions(options, bruceConfigPins.iButton + 1);
427 options.clear();
428 bruceConfigPins.setiButtonPin(sel);
429}
430
431#endif

Callers 1

setup_ibuttonFunction · 0.85

Calls 3

setiButtonPinMethod · 0.80
loopOptionsFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected