/CFAL12864G_and_CFAL12864K

Demo code for the CFAL12864G/K family of displays

Primary LanguageC++The UnlicenseUnlicense

CFAL12864G/K Demonstration Code

This is Arduino sample code for the CFAL12864G and CFAL12864K family of displays. These displays are available in sizes of 2.4" and 2.7" respectively and are slim, lightweight, and have low power consumption. The displays use the Solomon Systech SSD1309 display controller and are capable of several interfaces including 8-bit parallel, 4-wire SPI, and I2C. A 31-pin 0.5mm ZIF to header breakout board will be required to interface with the displays. We recommend the CFA10102 for this purpose as it supports an on-board boost circuit removing the requirement of a power supply to provide the panel driving voltage (VCC) of these displays.

Connection guide

// LCD SPI pins and control lines on Seeeduino:
//  ARD      | Port  | Display pin |  Function - SPI                          |
//-----------+-------+-------------+------------------------------------------+
// 3.3V/5V   |       |             |  POWER 3.3V                              |
// GND       |       |             |  GROUND                                  |
//-----------+-------+-------------+------------------------------------------+
// D8        | PORTB |  17         |  Data/Command                    (DC)    |
// D9        | PORTB |  16         |  Reset                           (Reset) |
// D10       | PORTB |  15         |  Chip select                     (CS)    |
// D11       | PORTB |  21         |  SPI data input                  (SDA)   |
// D13       | PORTB |  20         |  Serial clock                    (SCK)   |
//-----------+-------+-------------+------------------------------------------+
//==============================================================================
// Interface Selection
// BS2 | BS1 | Interface mode        | 
//-----+-----+-----------------------+
// 0   | 0   | 4-wire SPI            |
// 0   | 1   | I2C                   |
// 1   | 1   | 8-bit parallel (8080) |
//-----+-----+-----+------------------+
//==============================================================================
// SD card connection (using CFA10112)
//  ARD      | Port  | Adapter pin |  Function                                |
//-----------+-------+-------------+------------------------------------------+
// 3.3V      |       |  3.3V       |  POWER 3.3V                              |
// GND       |       |  GND        |  GROUND                                  |
//-----------+-------+-------------+------------------------------------------+
// D7        | PORTC |  CS         |  Chip select                     (CS)    |
// D11       | PORTB |  DI         |  Serial data in                  (DI)    |
// D12       | PORTB |  DO         |  Serial data out                 (DO)    |
// D13       | PORTB |  SCK        |  Serial clock                    (SCK)   |
//-----------+-------+-------------+------------------------------------------+
(Micro SD card connection is optional)

Display information

Here are links to our active displays:

For more information about other OLED offerings, please see our full list here.