{"id":16299550,"url":"https://github.com/fonger/esp8266-rtos-ssd1306","last_synced_at":"2025-03-20T05:30:50.496Z","repository":{"id":47410315,"uuid":"208158346","full_name":"Fonger/ESP8266-RTOS-SSD1306","owner":"Fonger","description":"i2s SSD1306 library for ESP8266_RTOS_SDK. This is a port from esp-open-rtos extra/ssd1306","archived":false,"fork":false,"pushed_at":"2021-09-01T13:42:00.000Z","size":21,"stargazers_count":25,"open_issues_count":5,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T15:01:52.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fonger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-12T22:45:07.000Z","updated_at":"2025-03-10T16:58:34.000Z","dependencies_parsed_at":"2022-07-26T15:17:58.349Z","dependency_job_id":null,"html_url":"https://github.com/Fonger/ESP8266-RTOS-SSD1306","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fonger%2FESP8266-RTOS-SSD1306","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fonger%2FESP8266-RTOS-SSD1306/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fonger%2FESP8266-RTOS-SSD1306/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fonger%2FESP8266-RTOS-SSD1306/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fonger","download_url":"https://codeload.github.com/Fonger/ESP8266-RTOS-SSD1306/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244559734,"owners_count":20472207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T20:48:30.291Z","updated_at":"2025-03-20T05:30:50.032Z","avatar_url":"https://github.com/Fonger.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP8266-RTOS-SSD1306\n\nSSD1306/SH1106 components for ESP8266_RTOS_SDK. This is a direct port from [extras/ssd1306](https://github.com/SuperHouse/esp-open-rtos/tree/master/extras/ssd1306) component from [esp-open-rtos](https://github.com/SuperHouse/esp-open-rtos).\n\nHowever, only i2s protocol is supported. If I have SPI version, I'll try to port and test it.\n\nYou can use this module along with [ESP8266-RTOS-FONTS](https://github.com/Fonger/ESP8266-RTOS-FONTS) to display text to oled display.\n\n## Compatibility\n\n- [espressif/ESP8266_RTOS_SDK](https://github.com/espressif/ESP8266_RTOS_SDK) v3.2+ (esp-idf style)\n- ssd1306/sh1106 oled display with i2s protocol\n\n## Usage\n\nClone this into your project `components` folder.\n\n```c\n\n#include \u003cstdio.h\u003e\n\n#include \u003cfreertos/FreeRTOS.h\u003e\n#include \u003cfreertos/task.h\u003e\n#include \u003cdriver/gpio.h\u003e\n\n#include \u003cssd1306/ssd1306.h\u003e\n#include \u003cdriver/i2c.h\u003e\n#include \u003cesp_err.h\u003e\n\n#define SCL_PIN 5\n#define SDA_PIN 4\n#define DISPLAY_WIDTH 128\n#define DISPLAY_HEIGHT 64\n\nvoid app_main()\n{\n    // init i2s\n    int i2c_master_port = I2C_NUM_0;\n    i2c_config_t conf;\n    conf.mode = I2C_MODE_MASTER;\n    conf.sda_io_num = SDA_PIN;\n    conf.sda_pullup_en = 1;\n    conf.scl_io_num = SCL_PIN;\n    conf.scl_pullup_en = 1;\n    conf.clk_stretch_tick = 300;\n    ESP_ERROR_CHECK(i2c_driver_install(i2c_master_port, conf.mode));\n    ESP_ERROR_CHECK(i2c_param_config(i2c_master_port, \u0026conf));\n\n    // init ssd1306\n    ssd1306_t dev = {\n        .i2c_port = i2c_master_port,\n        .i2c_addr = SSD1306_I2C_ADDR_0,\n        .screen = SSD1306_SCREEN, // or SH1106_SCREEN\n        .width = DISPLAY_WIDTH,\n        .height = DISPLAY_HEIGHT};\n\n    ssd1306_init(\u0026dev);\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffonger%2Fesp8266-rtos-ssd1306","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffonger%2Fesp8266-rtos-ssd1306","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffonger%2Fesp8266-rtos-ssd1306/lists"}