OLED C Click Board
OLED C Click Board
The OLED C Click Board™ is equipped with the 96x96 high-color OLED display. It can display up to 65K/262K different colors and shades on a compact 1.12 inch size display, based on the OLED technology. The OLED technology provides a very good brightness-to-contrast ratio, doesn’t require any backlight - since the pixel elements emit light on their own, better angle of viewing - compared to traditional TFT screens, better power consumption, better picture quality, better response times and more. The OLED technology is constantly being perfected and it is slowly taking over the existing liquid crystal technology (TFT).
Software Support
We provide a library for the OLED C Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
The library initializes and defines the SPI bus driver and drivers that offer a choice for writing data in the registers and reading data from the registers. The library includes functions for drawing a picture, pulls a rectangle and writes text on the screen.
The user can set the desired text font, and adjust the background color.
Key functions:
void oledc_init( void )
- The functions that initializes the chip.void oledc_text( uint8_t *text, uint16_t col_off, uint16_t row_off )
- The function writes text on the screen.void oledc_image( const uint8_t *img, uint8_t column_off, uint8_t row_off )
- The function draws the image on the screen.
Examples Description
The application is composed of three sections:
- System Initialization - Initializes SPI module and AN pin, RST pin, CS pin, PWM pin and INT pin as an output.
- Application Initialization - Initializes the driver init and the OLED C init and sets a full screen in white color with writing demo text.
- Application Task - (code snippet) -
- Display demo rectangle
- Display demo line
- Display demo Image
void applicationTask() { oledc_fill_screen( 0xFFFF ); Delay_100ms(); /* Rectangle demo*/ oledc_rectangle( 0, 0, 96, 96, 0xF000 ); Delay_ms( 500 ); oledc_rectangle( 5, 5, 91, 91, 0xFF00 ); Delay_ms( 500 ); oledc_rectangle( 10, 10, 86, 86, 0x00F0 ); Delay_ms( 500 ); oledc_rectangle( 15, 15, 81, 81, 0x0F0F ); Delay_ms( 500 ); oledc_rectangle( 20, 20, 76, 76, 0xF000 ); Delay_ms( 500 ); oledc_rectangle( 25, 25, 71, 71, 0xFF00 ); Delay_100ms(); /* Line demo */ oledc_rectangle( 25, 25, 71, 27, 0 ); Delay_100ms(); oledc_rectangle( 25, 71, 71, 73, 0 ); Delay_100ms(); oledc_rectangle( 25, 25, 27, 71, 0 ); Delay_100ms(); oledc_rectangle( 68, 25, 71, 71, 0 ); Delay_ms( 3000 ); /* Image demo */ oledc_image( &me_logo_bmp[0], 0, 0 ); Delay_ms( 2000 ); }
The full application code, and ready to use projects can be found on our Libstock page.
Other mikroE Libraries used in the example:
- Conversions
- SPI
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The OLED C Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
OLED C Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.