Tinkerforge::BrickletOLED64x48 - 1.68cm (0.66") OLED with 64x48 pixels
This constant is used to identify a OLED 64x48 Bricklet.
The get_identity() subroutine and the CALLBACK_ENUMERATE callback of the IP Connection have a device_identifier parameter to specify the Brick's or Bricklet's type.
This constant represents the display name of a OLED 64x48 Bricklet.
Creates an object with the unique device ID *uid* and adds it to the IP Connection *ipcon*.
Appends 64 byte of data to the window as set by :func:`New Window`.
Each row has a height of 8 pixels which corresponds to one byte of data.
Example: if you call :func:`New Window` with column from 0 to 63 and row from 0 to 5 (the whole display) each call of :func:`Write` (red arrow) will write one row.
.. image:: /Images/Bricklets/bricklet_oled_64x48_display.png :scale: 100 % :alt: Display pixel order :align: center :target: ../../_images/Bricklets/bricklet_oled_64x48_display.png
The LSB (D0) of each data byte is at the top and the MSB (D7) is at the bottom of the row.
The next call of :func:`Write` will write the second row and so on. To fill the whole display you need to call :func:`Write` 6 times.
Sets the window in which you can write with :func:`Write`. One row has a height of 8 pixels.
The columns have a range of 0 to 63 and the rows have a range of 0 to 5.
Clears the current content of the window as set by :func:`New Window`.
Sets the configuration of the display.
You can set a contrast value from 0 to 255 and you can invert the color (black/white) of the display.
The default values are contrast 143 and inverting off.
Returns the configuration as set by :func:`Set Display Configuration`.
Writes text to a specific line (0 to 5) with a specific position (0 to 12). 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 :func:`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 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' or 'd'.
The device identifier numbers can be found :ref:`here <device_identifier>`. |device_identifier_constant|