Adafruit GFX Library
Classes | Macros
Adafruit_GrayOLED.h File Reference
#include <Adafruit_GFX.h>
#include <Adafruit_I2CDevice.h>
#include <Adafruit_SPIDevice.h>
#include <SPI.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  Adafruit_GrayOLED
 Class that stores state and functions for interacting with generic grayscale OLED displays. More...
 

Macros

#define GRAYOLED_SETCONTRAST   0x81
 Generic contrast for almost all OLEDs.
 
#define GRAYOLED_NORMALDISPLAY   0xA6
 Generic non-invert for almost all OLEDs.
 
#define GRAYOLED_INVERTDISPLAY   0xA7
 Generic invert for almost all OLEDs.
 
#define MONOOLED_BLACK   0
 Default black 'color' for monochrome OLEDS.
 
#define MONOOLED_WHITE   1
 Default white 'color' for monochrome OLEDS.
 
#define MONOOLED_INVERSE   2
 Default inversion command for monochrome OLEDS.
 

Detailed Description

This is part of for Adafruit's GFX library, supplying generic support for grayscale OLED displays: http://www.adafruit.com/category/63_98

These displays use I2C or SPI to communicate. I2C requires 2 pins (SCL+SDA) and optionally a RESET pin. SPI requires 4 pins (MOSI, SCK, select, data/command) and optionally a reset pin. Hardware SPI or 'bitbang' software SPI are both supported.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries, with contributions from the open source community.

BSD license, all text above, and the splash screen header file, must be included in any redistribution.