Tags: OLED, 1.3, Inch, White, Module, I2c, Serial, Display, Arduino, Raspberry, Pi

OLED 1.3 Inch White Module I2c Serial Display For Arduino Raspberry Pi

  • 35.00 AED
    • Ex Tax:35.00 AED
    • Product Code: oled
    • Availability: In Stock
    These displays are small, only about 1in diameter, but very readable due to the high contrast of an OLED display. This display is made of 128×64 individual white OLED pixels, each one is turned on or off by the controller chip. Because the display makes its own light, no backlight is required. This ..

    These displays are small, only about 1in diameter, but very readable due to the high contrast of an OLED display. This display is made of 128×64 individual white OLED pixels, each one is turned on or off by the controller chip. Because the display makes its own light, no backlight is required. This reduces the power required to run the OLED and is why the display has such high contrast; we really like this miniature display for its crispness!

    This breakout can be used with I2C interface . The design is completely 5V-ready, with an onboard regulator and built in boost converter. It’s easier than ever to connect directly to your 3.3V or 5V microcontroller or single board computer!

    U8glib: https://code.google.com/p/u8glib/ 

    LCD assistant: http://en.radzio.dxp.pl/bitmap_converter/

    Paint.net: http://www.getpaint.net/index.html

    Now let’s go to the computer and see how the program Arduino to display these graphics. As you can see the code of the project is really simple. We are using the u8 graphics library for Arduino. In order to download it you have to visit the library’s website and download it from here. We click here … Download the library for Arduino and then we go to downloads. We download it from here. Then all we have to do is to unzip in our Arduino -> Libraries folder. In the code we have three byte Arrays that contain the data of each bitmap graphic that is going to be displayed on the screen. So all we do in the code is to display these graphics one after another with a delay of three seconds.

    We use the command drawBitmap in order to display the graphics on the screen. The command has four arguments The first 2, are the x and y coordinates of the screen that we want the top-left corner over the bitmap to be drawn to. The third argument is the width of the image divided by 8, then is the height of the bitmap image, and then it’s the byte Array that we want to draw.

    In order to create the bitmaps that we want to display on the screen we can use either Photoshop or the Free Software paint.net . We create a new empty document with a resolution 128 by 64 because that’s the resolution of the display. We disable antialiasing and we can use only two colors, Black and white. If we use any other colour it won’t appear on the display. I created a new bitmap and now I’m going to save it as a .bmp file. So we go to File -> Save as we save as BMP and we enter a new name here for example space4.bmp and we press save. OK. Flatten image. We don’t want any layers. and that’s it.

    Now we are going to use LCD assistant in order to create a byte Array from this bitmap. I have loaded the image on the LCD assistant software and I change the settings to Horizontal orientation. Now, all we have to do is to press File save output as for example space4.c and press save. That’s it. Then we open the file that LCD assistant has created and we copy the data Array from here. We then paste it in our Arduino sketch and then enter the word PROGMEM in order to store all that data in the program memory. Then all we have to do is to call the drawBitmap command and with the new bitmap Array. That’s it!

    ——————–
    CODE
    ——————–