Giter Club home page Giter Club logo

ssd1311's Introduction

SSD1311 Library

I've searched for good library for my OLED 16x02 screen, but i haven't found anything! So i've tried to implement my own library! There were some pieces of code in different repositories without any(or poor) description what each part do, with strange method names and bad comments... I've started to search information about my OLED screen and have found a full SSD1311 controller datasheet on which my screen was based!

So, what i have:

ssd1311 16x02 screen

After some research i had:

  • controller SSD1311
  • OLED screen
  • 2 lines x 16 cells
  • 5x7 (5x8) char
  • 256 step contrast
  • i2c interface
  • character generator 256 * 5x8 CGROM
  • character generator 64 * 8 bits CGRAM
  • display data 80 * 8 bits
  • 3 sets of CGROM (ROM A / B / C)
  • Row Re-mapping and Column Re-mapping
  • Double-height Font characters
  • Bi-direction shift function
  • All character reverse display
  • Display shift per line
  • Screen saving fade in / out feature

Useful links:

More links with some basic information:

Notes about library core:

Frame consist of:

  • (1) i2c address is 7 bit long
  • (2) next bit is a direction (READ or WRITE)
  • (3) next byte define is it command or data packet
  • (4) next byte is the command|data byte

Datasheet contains some naming for important moments. There are some explanations:

IS, RE, SD is a logical bits which can be set by doing command requests to screen

D/C# is a (3) in frame. First Wire.write after Wire.beginTransmission in code

R/W# is a bit (2) in frame. You can "control" it by doing Wire.requestFrom() or Wire.beginTransmission()

  • R/W# = 0 when Wire.beginTransmission()
  • R/W# = 1 when Wire.requestFrom()

CGRAM is Character Generator RAM

DDRAM is Display Data RAM

PIN dependent features:

This controller features is preset by pin configuration and may be ignored in code if default values are suitable for you^

  • MCU bus interface selection
  • CGRAM
  • Slave address
  • Internal VDD regulator
  • OLED Characterization
  • Display Clock Divide Ratio
  • Oscillator Frequency
  • SEG Pins Hardware Configuration
  • V COMH Deselect Level

ssd1311's People

Contributors

n2j7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ssd1311's Issues

Only one row

Hello,
I would like to use your Library but have problems. It works only in first row. Second is blank. If I place cursor on second and print something, appear errors on the first line (somethink like bar code).
With Library by "gadjet" works fine.

Enabling 4 row

Hi,
i'm about to purchase an 4x20 oled display with the SSD1311 controller, i would like to use your library but i'm not sure that it can work with 4 row. Have you already tried or there could be a problem?
Thanks for the support.

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.