GithubHelp home page GithubHelp logo

unforgiven-development / qm-ssd1306 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skiselev/qm-ssd1306

0.0 2.0 0.0 18 KB

SSD1306 OLED Display Driver for Intel QMSI

License: BSD 3-Clause "New" or "Revised" License

Makefile 8.66% C 91.34%

qm-ssd1306's Introduction

qm-ssd1306

SSD1306 OLED Display Driver for Intel(r) QMSI

Introduction

This driver provides support for OLED displays based on SSD1306 controller for projects developed using Intel(r) Quark(tm) Microcontroller Software Interface (aka QMSI). The driver supports text output using 6x8 font. Graphics output is not supported yet. The driver supports displays with SPI and I2C interfaces.

Hardware Configuration

Supported OLED displays

This driver has been tested with the following displays:

It is likely that it will work with other SSD1306-based displays with no or little modifications

Wiring - I2C Interface

Signal Name OLED Pin Name Intel(r) Quark(tm) D2000 Board Pin Name Notes
Ground GND GND
Power Supply, 5V VCC, Vin 5V
Power Supply, 3.3V 3.3V 3.3V MikroElektronika OLED Click only
I2C Data SDA, Data A4 or SDA
I2C Clock SCL, Clk A5 or SCL

Note that Adafruit 128x64 OLED and MikroElektronika OLED Click displays come preconfigured to work in SPI mode. It is needed to re-configure them for I2C mode by soldering jumpers (Adafruit) or moving 0 ohm resistors (MikroElektronika OLED Click).

Wiring - SPI Interface

Signal Name OLED Pin Name Intel(r) Quark(tm) D2000 Board Pin Name Notes
Ground GND GND
Power Supply, 5V VCC, Vin 5V
Power Supply, 3.3V 3.3V 3.3V MikroElektronika OLED Click only
SPI MOSI SDI, Data, D1 11 (MOSI)
SPI Clock SCK, Clk, D0 13 (SCK)
SPI Chip Select CS 10 (SS0)
OLED Reset RST, Rst, RES 8
OLED Data/Control D/C, DC 9 (PWM1)

Using the Driver

Building the Sample Application

  1. Create a new QMSI based project, for example using Intel(r) System Studio for Microcontrollers
  2. Copy main.c, ssd1306.h, and ssd1306.c files to your project directory
  3. Build and run the project

Integrating the Driver in Your Application

  1. Create a new QMSI based project, for example using Intel(r) System Studio for Microcontrollers
  2. Copy ssd1306.h and ssd1306.c files to your project directory
  3. Add include "ssd1306.h" line in your main.c
  4. Edit ssd1306.h.
  • Set SSD1306_I2C to '1' if using I2C interface, or to '0' if using SPI interface
  • Set display resolution - SSD1306_LCD_WIDTH and SSD1306_LCD_HEIGHT to match your display configuration
  1. Add I2C or SPI initialization code. Refer to setup() function in main.c included with this driver.
  2. From your code call ssd1306_init(), and then use other ssd1306_*() functions in your application as needed. Refer to main.c for usage example.

qm-ssd1306's People

Contributors

skiselev avatar

Watchers

Gerad Munsch avatar 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.