Adafruit GFX Library
Macros
Adafruit_GrayOLED.cpp File Reference
#include "Adafruit_GrayOLED.h"
#include <Adafruit_GFX.h>

Macros

#define grayoled_swap(a, b)   (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b)))
 No-temp-var swap operation.
 

Detailed Description

This is documentation for Adafruit's generic library 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!