IoT, Java, Programming, Software Development.
scrollingText.length(); while (true) { for (int i = 0; i <= textLength - displayColumns; i++) { lcd.write(0, scrollingText.substring(i, i + displayColumns)); try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } } } } Brief description: We import the necessary Pi4J