| Modifier and Type | Field and Description |
|---|---|
protected Audio |
audio |
protected Power |
battery |
protected Key |
down |
protected Key |
enter |
protected Key |
escape |
static LocalEV3 |
ev3 |
protected GraphicsLCD |
graphicsLCD |
static int |
ID_DOWN |
static int |
ID_ENTER |
static int |
ID_ESCAPE |
static int |
ID_LEFT |
static int |
ID_RIGHT |
static int |
ID_UP |
protected Key[] |
keyArray |
protected lejos.internal.ev3.EV3Keys |
keys |
protected lejos.internal.ev3.EV3LCDManager |
lcdManager |
protected LED |
led |
protected Key |
left |
protected java.util.ArrayList<lejos.internal.ev3.EV3Port> |
ports |
protected Key |
right |
protected TextLCD |
textLCD |
protected Key |
up |
protected Video |
video |
| Modifier and Type | Method and Description |
|---|---|
static EV3 |
get() |
Audio |
getAudio()
return a Audio object which can be used to access the device's audio playback
|
LocalBTDevice |
getBluetoothDevice()
Get the local Bluetooth device
|
GraphicsLCD |
getGraphicsLCD()
Get graphics access to the LCD
|
Key |
getKey(java.lang.String name)
Get access to a specific Key (aka Button)
|
Keys |
getKeys()
Get access to the keys (buttons)
|
LED |
getLED()
Get access to the LED
|
java.lang.String |
getName()
Get he name of the brick
|
Port |
getPort(java.lang.String portName)
Return a port object for the request port name.
|
Power |
getPower()
return a battery object which can be used to obtain battery voltage etc.
|
TextLCD |
getTextLCD()
Get text access to the LCD using the default font
|
TextLCD |
getTextLCD(Font f)
Get text access to the LCD using a specified font
|
java.lang.String |
getType()
Get the type of brick, e.g.
|
Video |
getVideo() |
LocalWifiDevice |
getWifiDevice()
Get the local Wifi device
|
protected void |
initLCD() |
boolean |
isLocal()
Test whether the brick is a local one
|
void |
setDefault()
Set this brick as the default one for static methods
|
public static final int ID_UP
public static final int ID_ENTER
public static final int ID_DOWN
public static final int ID_RIGHT
public static final int ID_LEFT
public static final int ID_ESCAPE
public static final LocalEV3 ev3
protected lejos.internal.ev3.EV3LCDManager lcdManager
protected final Power battery
protected final Audio audio
protected java.util.ArrayList<lejos.internal.ev3.EV3Port> ports
protected TextLCD textLCD
protected GraphicsLCD graphicsLCD
protected lejos.internal.ev3.EV3Keys keys
protected final LED led
protected Video video
protected final Key enter
protected final Key escape
protected final Key left
protected final Key right
protected final Key up
protected final Key down
protected final Key[] keyArray
public static EV3 get()
public Port getPort(java.lang.String portName)
public Power getPower()
protected void initLCD()
public TextLCD getTextLCD()
BrickgetTextLCD in interface Brickpublic GraphicsLCD getGraphicsLCD()
BrickgetGraphicsLCD in interface Brickpublic TextLCD getTextLCD(Font f)
BrickgetTextLCD in interface Brickf - the fontpublic Audio getAudio()
public boolean isLocal()
Brickpublic java.lang.String getType()
Brickpublic java.lang.String getName()
Brickpublic LocalBTDevice getBluetoothDevice()
BrickgetBluetoothDevice in interface Brickpublic LocalWifiDevice getWifiDevice()
BrickgetWifiDevice in interface Brickpublic void setDefault()
BricksetDefault in interface Brickpublic Key getKey(java.lang.String name)
Brick