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

Method addButton

include/VectorDisplay.h:521–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519 void deleteButton(uint8_t command) { sendCommand('D', &command, 1); }
520
521 void addButton(uint8_t command, const char *str) {
522 args.charText.c = command;
523 strncpy(args.charText.text, str, VECTOR_DISPLAY_MAX_STRING - 1);
524 args.charText.text[VECTOR_DISPLAY_MAX_STRING - 1] = 0;
525 sendCommand('U', &args, 1 + strlen(args.charText.text) + 1);
526 }
527
528 void addButton(uint8_t command, String str) { addButton(command, str.c_str()); }
529

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected