10000 GitHub - abdellah2288/ESP32-OLED: ESP-IDF OLED Library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

abdellah2288/ESP32-OLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I2C OLED Display Library

This library provides functions and structures for controlling an I2C OLED display using the ESP-IDF framework. It includes features for drawing pixels, characters, BMP images, and XBM images on the OLED display. The library is designed to work with the ESP32 microcontroller.

Usage

  • Initialization
  • Drawing Pixels
  • Drawing Characters
  • Drawing BMP Images
  • Drawing XBM Images

Structures

  • i2c_oled_t
  • bmp_t
  • xbm_t

Functions

  • i2c_init_master
  • i2c_oled_refresh
  • i2c_oled_clear
  • i2c_oled_init
  • i2c_oled_draw_pixel
  • gen_bmp
  • draw_bmp
  • gen_xbm
  • draw_xbm
  • i2c_oled_draw_char
  • i2c_oled_text_newline
  • i2c_oled_invert_line
  • i2c_oled_reset_cols
  • draw_char
  • i2c_oled_draw_string

Example usage

#include <stdio.h>
#include <string.h>
#include "I2C_OLED.h"
i2c_oled_t oled =
{
		I2C_NUM_0,
		GPIO_NUM_21,
		GPIO_NUM_22,
		0x3C,
		64,
		128,
		0,
		NULL,
		{-1,-1}
};
void app_main(void)
{
    i2c_init_master(&oled);

    i2c_oled_init(&oled);
    i2c_oled_clear(&oled);
    i2c_oled_draw_string(&oled,"Test",4,1);
    i2c_oled_refresh(&oled);
    while(1)
    {
    printf("Ping !\n");
    vTaskDelay(1000/portTICK_PERIOD_MS);
    }
}

Au 5F2F thor

Abdellah R. Github: abdellah2288

License

GPL v2

Releases

No releases published

Packages

No packages published
0