DisplayModule API
DisplayModule is a typed wrapper for text display module blocks.
Reference
setText(text: String)Sets the text shown on the display block.appendText(text: String)Appendstextto the current display contents.clearText()Clears the display text.setLines(lines: String[])Sets the display text from multiple lines joined with newline separators.getText()Returns the current display text as aString, ornilwhen the block has no text set.getTextBlockIndex()Returns the internal text block render index as anInteger.
Notes
Obtain this wrapper via
peripheral.wrap(block, "display").