TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136222 times)
  2. FAT32 Library (69487 times)
  3. Network Ethernet Library (55706 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40784 times)
  7. GSM click (28788 times)
  8. PID Library (26332 times)
  9. mikroSDK (26054 times)
  10. microSD click (25141 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

OLED C click

Rating:

5

Author: MIKROE

Last Updated: 2018-01-29

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: OLED

Downloaded: 11466 times

Followed by: 2 users

License: MIT license  

OLED C click arries the PSP27801 OLED display, the same one that we have used on Hexiwear. The click is designed to run on 3.3V power supply only. It communicates with the target microcontroller over an SPI interface.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "OLED C click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "OLED C click" changes.

Do you want to report abuse regarding "OLED C click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

OLED C click

OLED C click

Native view of the OLED C click board.

View full image
OLED C click

OLED C click

Front and back view of the OLED C click board.

View full image

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 );
}

Other mikroE Libraries used in the example:

  • Conversions
  • SPI

Additional notes and information

Depending on the development board you are using, you may need 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.

 

ALSO FROM THIS AUTHOR

Buck 15 click

0

Buck 15 Click is a compact add-on board for precision voltage regulation across various applications. This board features the TPS62903, a synchronous step-down DC/DC converter from Texas Instruments. It is known for its adaptability, rapid transient response, and high output voltage accuracy of ±1.5% across all operating temperatures. Featuring the innovative DCS-control topology, it supports a wide input voltage range of 3V to 17V, an adjustable output voltage from 0.4V to 5V, and currents up to 3A. This Click board™ can be used in a variety of automotive applications, such as the ADAS, body electronics and lighting, infotainment and cluster, hybrid, electric, and powertrain systems, any application with a 12V input voltage or a 1-4 cell lithium battery pack, and more.

[Learn More]

MCP73871 click

5

MCP73871 Click is a fully integrated solution for system power delivery and Li-Po/Li-Ion battery charge management. The click features many Li-Po/Li-Ion battery charging optimizations, used to maximize the battery life.

[Learn More]

RN4871 click

0

RN4871 click carries the RN4871 Bluetooth® 4.2 low energy module from Microchip.The click is designed to run on a 3.3V power supply. It uses ASCII Command Interface over UART for communication with target microcontroller, with additional functionality provided by the following pins on the mikroBUS™ line: RST, CS, and INT.

[Learn More]