This is the description of the openHAB API bindings for the OLED 64x48 Bricklet. General information and technical specifications for the OLED 64x48 Bricklet are summarized in its hardware description.
An installation guide for the openHAB API bindings is part of their general description.
Required firmware version:
Firmware update supported:
Channels: Actions: Parameters:
- Contrast – Type: integer, Default: 143, Min: 0, Max: 255
- Sets the contrast of the display (0-255).
- Invert – Type: boolean, Default: false
- Inverts the color (black/white) of the display.
Text to display on the LCD. Command format is [line],[position],[text].
Additional ',' are handled as part of the text. Unicode characters are converted to the LCD character set if possible. Additionally you can use \x[two hex digits] to use a character of the LCD character set directly.
Deletes all characters from the display.
- Commands (String)
- Accepts any string
Actions can be used in rules by creating an action object. All actions return a Map<String, Object>. Returned values can be accessed by name, sometimes the type deduction needs some hints, as shown below:
val actions = getActions("tinkerforge", "tinkerforge:brickletoled64x48:[UID]") val hwVersion = actions.brickletOLED64x48GetIdentity().get("hardwareVersion") as short logInfo("Example", "Hardware version: " + hwVersion.get(0) + "." + hwVersion.get(1) + "." + hwVersion.get(2))
Appends 64 byte of data to the window as set by NewWindow().
Each row has a height of 8 pixels which corresponds to one byte of data.
The LSB (D0) of each data byte is at the top and the MSB (D7) is at the bottom of the row.
Sets the window in which you can write with Write(). One row has a height of 8 pixels.
Writes text to a specific line with a specific position. The text can have a maximum of 13 characters.
For example: (1, 4, "Hello") will write Hello in the middle of the second line of the display.
You can draw to the display with Write() and then add text to it afterwards.
The display uses a special 5x7 pixel charset. You can view the characters of the charset in Brick Viewer.
Returns the configuration as set by the thing configuration.
Returns the UID, the UID where the Bricklet is connected to, the position, the hardware and firmware version as well as the device identifier.
The position can be 'a', 'b', 'c', 'd', 'e', 'f', 'g' or 'h' (Bricklet Port). The Raspberry Pi HAT (Zero) Brick is always at position 'i' and the Bricklet connected to an Isolator Bricklet is always as position 'z'.
The device identifier numbers can be found here.