Because each pixel can be set individually, the display can do graphics. This allows for more versatile and detailed drawings on the display, compared to the LCD 20x4 Bricklet with its fixed character display.
Additionally, text can easily be drawn onto the display with the embedded font of the Bricklet.
High update rates of up to 100Hz are possible.
A demo with the 128x64 pixel version, a Servo Brick and a Rotary Poti Bricklet is available on Youtube:
10mW (2mA at 5V, all pixels black)
110mW (22mA at 5V, all pixels white)
|Resolution||64x48 pixel, 13x6 characters|
|Dimensions (W x D x H)||35 x 20 x 7mm (1.38 x 0.79 x 0.28")|
To test a OLED 64x48 Bricklet you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the OLED 64x48 Bricklet to a Brick with a Bricklet Cable.
If you connect the Brick to the PC over USB, you should see a new tab named "OLED 64x48 Bricklet" in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.
You can draw and write text to the display. With the slider it is also possible to show the available character set on the OLED.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the OLED 64x48 Bricklet and examples in different programming languages.
Unfortunately Bricklets only have a very limited amount of RAM (256 Byte) and flash (4096 Byte) available. This is not enough to for example cache a whole 64x48 b/w image. Therefore we can not offer convenient APIs like draw_line(x1, y1, x2, y2).
To draw to the display we recommend that you use an image library that is native to your programming language (for example PIL for Python). This way you can use all of the available drawing primitives and fonts of the library and then copy the image buffer to the Bricklet.
We provide examples for
The Bricklet has an embedded font (ASCII subset in green) that allows fast and easy text rendering (up to 13x6 characters):
See Programming Interface for a detailed description.
|Visual Basic .NET||API||Examples||Installation|