public class CodeTemplate extends UARTSensor
The code for this sensor has not been tested. Please report test results to the leJOS forum.
Supported modes | |||
---|---|---|---|
Mode name | Description | unit(s) | Getter |
Some | getSomeMode() |
Sensor configuration
Description of default sensor configuration (when that matters). Description
of available methods for configuration.
See Sensor datasheet
See Sensor Product page
See The
leJOS sensor framework
See leJOS conventions for
SampleProviders
currentMode, port
modes
Constructor and Description |
---|
CodeTemplate(Port port)
Constructor using a unopened port
|
CodeTemplate(UARTPort port)
Constructor using a opened and configured port
|
Modifier and Type | Method and Description |
---|---|
SampleProvider |
getSomeMode()
Sensor name, mode
Mode description |
protected void |
init()
Configures the sensor for first use and registers the supported modes
|
switchMode
fetchSample, getAvailableModes, getCurrentMode, getMode, getMode, getModeCount, getName, sampleSize, setCurrentMode, setCurrentMode, setModes
close, releaseOnClose
public CodeTemplate(Port port)
port
- public CodeTemplate(UARTPort port)
port
- protected void init()
public SampleProvider getSomeMode()
Size and content of the sample
The sample contains # elements. Each element gives Something (in some
unit).
Configuration
The sensor is configured for.... . Currently there are no configurable
settings.
leJOS conventions for
SampleProviders
See Sensor datasheet