Continue to Site

Welcome to

Welcome to our site! is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

OLED Display Library for PIC Micro-Controller

In this blog post i will share the OLED libraries with you, which are written for mikroC compiler and can be used with any other C compiler.

Following are the functions which are currently present.

void OLED_Init( void );
uint8_t OLED_Width( void );
uint8_t OLED_Height( void );
void OLED_Update( void );
void OLED_SetContrast( uint8_t contrast );
void OLED_ClearDisplay( void );
void OLED_FillDisplay( void );
void OLED_DrawPixel( uint8_t x, uint8_t y, uint8_t color);
void OLED_InvertDisplay( uint8_t value );
void OLED_SetFont( const uint8_t *font);
void OLED_InvertFont( uint8_t invert_status );
void OLED_Circle( int8_t x_center, int8_t y_center, uint8_t radius, uint8_t color);
void OLED_Line( int8_t x_start, int8_t y_start, int8_t x_end, int8_t y_end, uint8_t color);
void OLED_V_Line ( uint8_t y_start, uint8_t y_end, uint8_t x_pos, uint8_t color);
void OLED_H_Line( uint8_t x_start, uint8_t x_end, uint8_t y_pos, uint8_t color);
void OLED_Rectangle( uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t color);
void OLED_FillRectangle( uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t color);
void OLED_Triangle(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t color);
void OLED_Circle( int8_t x0, int8_t y, uint8_t r, uint8_t color );
void OLED_Image( const uint8_t *image);
void OLED_Write( uint8_t x, uint8_t y, uint8_t value );
void OLED_Write_Text(uint8_t x, uint8_t y, uint8_t *text);

The following are the snaps taken from the actual hardware.






Video Demo:


Download Link

DHT11 Interfacing with PIC and updating Values on OLED
DHT11 Temperature and Humidity Sensor is used and the sensed temperature and humidity values are updated on OLED using the libraries.

Demo Video

Software Attached
View attachment

View attachment


Part and Inventory Search

Blog entry information

Read time
2 min read
Last update


    871 KB · Views: 1,027
    506 KB · Views: 696

More entries in Uncategorized

More entries from xpress_embedo

Share this entry