- java.lang.Object
-
- com.ibasco.ucgdisplay.drivers.glcd.GlcdOption<T>
-
- Type Parameters:
T
- The type of the underlying option
public class GlcdOption<T> extends java.lang.Object
Options for the native layer- Author:
- Rafael Ibasco
-
-
Field Summary
Fields Modifier and Type Field Description static GlcdOption<GlcdBufferSize>
BUFFER_SIZE
Specify the buffer size to be allocated for the display controller 1 page buffer, 2 page buffers or Full Screen Bufferstatic GlcdOption<java.lang.Integer>
BUS_SPEED
The transfer rate to be applied for the I/O peripheral (e.g.static GlcdOption<java.lang.Boolean>
EXTRA_DEBUG_INFO
Show additional debug information on the consolestatic GlcdOption<GpioChip>
GPIO_CHIP
The GPIO Chip devicestatic GlcdOption<I2CBus>
I2C_BUS
The primary bus to be used for I2C communicationstatic GlcdOption<java.lang.Integer>
I2C_DEVICE_ADDRESS
The I2C address of the displaystatic GlcdOption<java.lang.Integer>
I2C_FLAGS
Provider specific I2C flags.static GlcdOption<java.lang.String>
PIGPIO_ADDRESS
The IP address of the pigpiod daemon.static GlcdOption<java.lang.Integer>
PIGPIO_PORT
The port number of the pigpiod daemon.static GlcdOption<Provider>
PROVIDER
The default provider to be used for all I/O peripheralsstatic GlcdOption<GlcdRotation>
ROTATION
The display rotation.static GlcdOption<SpiBitOrder>
SPI_BIT_ORDER
SPI Bit Order.static GlcdOption<java.lang.Integer>
SPI_BITS_PER_WORD
SPI Bits per word.static GlcdOption<SpiBus>
SPI_BUS
The primary bus to be used for SPI communication.static GlcdOption<SpiChannel>
SPI_CHANNEL
The SPI channel (also known as Chip-Select)static GlcdOption<java.lang.Integer>
SPI_FLAGS
Provider specific SPI flags Only for advanced users.static GlcdOption<SpiMode>
SPI_MODE
The SPI Mode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
toString()
-
-
-
Field Detail
-
PROVIDER
public static final GlcdOption<Provider> PROVIDER
The default provider to be used for all I/O peripherals
-
BUS_SPEED
public static final GlcdOption<java.lang.Integer> BUS_SPEED
The transfer rate to be applied for the I/O peripheral (e.g. SPI interface).ex: Use 100000 for 100,000 Hz
-
GPIO_CHIP
public static final GlcdOption<GpioChip> GPIO_CHIP
The GPIO Chip device
-
SPI_CHANNEL
public static final GlcdOption<SpiChannel> SPI_CHANNEL
The SPI channel (also known as Chip-Select)Note: This is only required if the provider is pigpio and Hardware SPI is selected.
Raspberry Pi SPI Channels
_____________________________________ | CE0 CE1 CE2 | | -----------------------------------| | Main SPI 8 7 - | | Aux SPI 18 17 16 | `````````````````````````````````````
- See Also:
- SPI Channel
-
SPI_BUS
public static final GlcdOption<SpiBus> SPI_BUS
The primary bus to be used for SPI communication. For raspberry pi, there are two SPI peripherals available, the main and the auxillary.
-
SPI_MODE
public static final GlcdOption<SpiMode> SPI_MODE
The SPI Mode. Values can be 0, 1, 2, or 3. (Default: 0)WARNING: On pigpio, modes 1 and 3 do not appear to work on the auxiliary SPI.
- See Also:
SpiMode
-
SPI_BIT_ORDER
public static final GlcdOption<SpiBitOrder> SPI_BIT_ORDER
SPI Bit Order. Can be either 0 = MSB First or 1 = LSB First. (Default: 0)
-
SPI_BITS_PER_WORD
public static final GlcdOption<java.lang.Integer> SPI_BITS_PER_WORD
SPI Bits per word. (Default: 8)
-
I2C_BUS
public static final GlcdOption<I2CBus> I2C_BUS
The primary bus to be used for I2C communicationNote: This is only required if you choose pigpio as your I2C provider and the I/O implementation is Hardware.
-
I2C_DEVICE_ADDRESS
public static final GlcdOption<java.lang.Integer> I2C_DEVICE_ADDRESS
The I2C address of the display
-
SPI_FLAGS
public static final GlcdOption<java.lang.Integer> SPI_FLAGS
Provider specific SPI flags Only for advanced users. More information on the provider's website.- See Also:
- PIGPIO SPI Flags, C-Periphery (Extra Flags)
-
I2C_FLAGS
public static final GlcdOption<java.lang.Integer> I2C_FLAGS
Provider specific I2C flags. Only for advanced users. More information on the provider's website.
-
ROTATION
public static final GlcdOption<GlcdRotation> ROTATION
The display rotation. Default is None.
-
PIGPIO_ADDRESS
public static final GlcdOption<java.lang.String> PIGPIO_ADDRESS
The IP address of the pigpiod daemon. If null/empty, the default value would be used (Default: localhost).Note: The default value can also be overriden by an environment variable on the target's OS (PIGPIO_ADDR)
-
PIGPIO_PORT
public static final GlcdOption<java.lang.Integer> PIGPIO_PORT
The port number of the pigpiod daemon. If null/empty, the default value would be used (Default: 8888).Note: The default value can also be overriden by an environment variable on the target's OS (PIGPIO_PORT)
-
BUFFER_SIZE
public static final GlcdOption<GlcdBufferSize> BUFFER_SIZE
Specify the buffer size to be allocated for the display controller 1 page buffer, 2 page buffers or Full Screen Buffer
-
EXTRA_DEBUG_INFO
public static final GlcdOption<java.lang.Boolean> EXTRA_DEBUG_INFO
Show additional debug information on the console
-
-