Package lejos.hardware.ev3
Class LocalEV3
- java.lang.Object
-
- lejos.hardware.ev3.LocalEV3
-
-
Field Summary
Fields Modifier and Type Field Description protected Audioaudioprotected Powerbatteryprotected Keydownprotected Keyenterprotected Keyescapestatic LocalEV3ev3protected GraphicsLCDgraphicsLCDstatic intID_DOWNstatic intID_ENTERstatic intID_ESCAPEstatic intID_LEFTstatic intID_RIGHTstatic intID_UPprotected Key[]keyArrayprotected lejos.internal.ev3.EV3Keyskeysprotected lejos.internal.ev3.EV3LCDManagerlcdManagerprotected LEDledprotected Keyleftprotected java.util.ArrayList<lejos.internal.ev3.EV3Port>portsprotected Keyrightprotected TextLCDtextLCDprotected Keyupprotected Videovideo
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EV3get()AudiogetAudio()return a Audio object which can be used to access the device's audio playbackLocalBTDevicegetBluetoothDevice()Get the local Bluetooth deviceGraphicsLCDgetGraphicsLCD()Get graphics access to the LCDKeygetKey(java.lang.String name)Get access to a specific Key (aka Button)KeysgetKeys()Get access to the keys (buttons)LEDgetLED()Get access to the LEDjava.lang.StringgetName()Get he name of the brickPortgetPort(java.lang.String portName)Return a port object for the request port name.PowergetPower()return a battery object which can be used to obtain battery voltage etc.TextLCDgetTextLCD()Get text access to the LCD using the default fontTextLCDgetTextLCD(Font f)Get text access to the LCD using a specified fontjava.lang.StringgetType()Get the type of brick, e.g.VideogetVideo()LocalWifiDevicegetWifiDevice()Get the local Wifi deviceprotected voidinitLCD()booleanisLocal()Test whether the brick is a local onevoidsetDefault()Set this brick as the default one for static methods
-
-
-
Field Detail
-
ID_UP
public static final int ID_UP
- See Also:
- Constant Field Values
-
ID_ENTER
public static final int ID_ENTER
- See Also:
- Constant Field Values
-
ID_DOWN
public static final int ID_DOWN
- See Also:
- Constant Field Values
-
ID_RIGHT
public static final int ID_RIGHT
- See Also:
- Constant Field Values
-
ID_LEFT
public static final int ID_LEFT
- See Also:
- Constant Field Values
-
ID_ESCAPE
public static final int ID_ESCAPE
- See Also:
- Constant Field Values
-
ev3
public static final LocalEV3 ev3
-
lcdManager
protected lejos.internal.ev3.EV3LCDManager lcdManager
-
battery
protected final Power battery
-
audio
protected final Audio audio
-
ports
protected java.util.ArrayList<lejos.internal.ev3.EV3Port> ports
-
textLCD
protected TextLCD textLCD
-
graphicsLCD
protected GraphicsLCD graphicsLCD
-
keys
protected lejos.internal.ev3.EV3Keys keys
-
led
protected final LED led
-
video
protected Video video
-
enter
protected final Key enter
-
escape
protected final Key escape
-
left
protected final Key left
-
right
protected final Key right
-
up
protected final Key up
-
down
protected final Key down
-
keyArray
protected final Key[] keyArray
-
-
Method Detail
-
get
public static EV3 get()
-
getPort
public Port getPort(java.lang.String portName)
Return a port object for the request port name. This allows access to the hardware associated with the specified port.
-
getPower
public Power getPower()
return a battery object which can be used to obtain battery voltage etc.
-
initLCD
protected void initLCD()
-
getTextLCD
public TextLCD getTextLCD()
Description copied from interface:BrickGet text access to the LCD using the default font- Specified by:
getTextLCDin interfaceBrick- Returns:
- the text LCD
-
getGraphicsLCD
public GraphicsLCD getGraphicsLCD()
Description copied from interface:BrickGet graphics access to the LCD- Specified by:
getGraphicsLCDin interfaceBrick- Returns:
- the graphics LCD
-
getTextLCD
public TextLCD getTextLCD(Font f)
Description copied from interface:BrickGet text access to the LCD using a specified font- Specified by:
getTextLCDin interfaceBrick- Parameters:
f- the font- Returns:
- the text LCD
-
getAudio
public Audio getAudio()
return a Audio object which can be used to access the device's audio playback
-
isLocal
public boolean isLocal()
Description copied from interface:BrickTest whether the brick is a local one
-
getType
public java.lang.String getType()
Description copied from interface:BrickGet the type of brick, e.g. "EV3", "NXT", "BrickPi"
-
getName
public java.lang.String getName()
Description copied from interface:BrickGet he name of the brick
-
getBluetoothDevice
public LocalBTDevice getBluetoothDevice()
Description copied from interface:BrickGet the local Bluetooth device- Specified by:
getBluetoothDevicein interfaceBrick- Returns:
- the local Bluetooth device
-
getWifiDevice
public LocalWifiDevice getWifiDevice()
Description copied from interface:BrickGet the local Wifi device- Specified by:
getWifiDevicein interfaceBrick- Returns:
- the local Wifi device
-
setDefault
public void setDefault()
Description copied from interface:BrickSet this brick as the default one for static methods- Specified by:
setDefaultin interfaceBrick
-
getKey
public Key getKey(java.lang.String name)
Description copied from interface:BrickGet access to a specific Key (aka Button)
-
-