You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 17, 2024. It is now read-only.
mob41 edited this page Jan 14, 2017
·
10 revisions
The library provides an LCDGraphics class to deal with the LCD. But in this stage, the LCDGraphics class haven't implemented completely. This page is only for testing the features.
LCDlcd = newLCD(); //Creates an ev3dev LCD instance.LCDGraphicsg = newLCDGraphics(lcd); //Creates the LCDGraphics class//The LCD only supports BLACK and WHITE. Specifying other colors//will result an exception//g.setColor(Color.WHITE); //Sets color to Color.WHITE//g.setWhiteColor(); //Alternative//g.setColor(Color.BLACK); //Sets color to Color.BLACKg.setBlackColor(); //Alternative//The library currently implements the drawLine() and fillRect() methodg.drawLine(0, 0, 100, 30); //Draws a line from (0,0) to (100,30)g.fillRect(50, 50, 25, 25); //Draws a 25x25 rectangle at (50,50)g.flush(); //Applies the graphics to the LCD