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

Method fromFile

src/core/scrollableTextArea.cpp:96–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void ScrollableTextArea::fromFile(File file) {
97 linesBuffer.clear();
98 while (file.available()) addLine(file.readStringUntil('\n'));
99
100 draw(true);
101 delay(100);
102 draw(true);
103}
104
105void ScrollableTextArea::clear() {
106 firstVisibleLine = 0;

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
availableMethod · 0.45
readStringUntilMethod · 0.45

Tested by

no test coverage detected