Giter Site home page Giter Site logo

esp-i2c-oled's Introduction

#SSD1305/1306 OLED driver for ESP8266

This project demostrates how to drive SSD1305/1306 based OLED panel using ESP8266. The project is build with ESP8266 RTOS SDK available at https://github.com/espressif/esp_iot_rtos_sdk, and compile using Espressif supplied VM. Other useful modules within this project includes:

  • i2c.h/i2c.c is software bitbanged I2C driver
  • shell.h/shell.c/shell_cmds.c implements command line shell on UART0 (9600,8,N,1), with rudimentary line editing capability.
  • dmsg.h/dmsg.c implements a simple tx-only debug output on UART1 (74480,8,N,1)
  • xmit/xsnprintf implements printf-alike output functions, based on Chan's excellent xprintf code.

In my testing environment, I have one SSD1306 128x32 panel and one SSD1306 128x64 panel connected on soft I2C bus. GPIO4 is used for SCL and GPIO5 for SDA. One panel, the 128x32 one, needs a RESET line on GPIO12. You may edit i2c.c and ssd1306_i2c.c to change pin configuration.

If you feel this code is useful, please support my ESP8266 breadboard adapter on Tindie store: https://www.tindie.com/products/Ba0sh1/esp8266-esp-0712-full-io-breadboard-adapter/

Copyright (c) 2015, Baoshi Zhu. All rights reserved. Source code in this project is governed by BSD-style license that can be found in the LICENSE.txt file.

esp-i2c-oled's People

Contributors

baoshi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.