Lejos [LATEST]
import lejos.hardware.lcd.LCD; import lejos.utility.Delay; public class HelloWorld { public static void main(String[] args) { LCD.drawString("Hello, leJOS!", 0, 0); Delay.msDelay(2000); // Wait for 2 seconds LCD.clear(); } } Use code with caution. Copied to clipboard
Create a new Java class and use the following code to display text on the screen: import lejos
Right-click your project -> leJOS -> Upload and Run on EV3 . 4. Core Concepts & API LeJOS, Java for Lego Mindstorms / Books // Wait for 2 seconds LCD.clear()