/CFAG12864Q1

Demo code for the CFAG12864Q family of products

Primary LanguageC++The UnlicenseUnlicense

CFAG12864Q1-TFH and CFAG12864Q1-TMI Demo Code

This example Seeeduino (Arduino clone) code is for the Crystalfontz "Q" family of 128x64 graphical displays. These displays are transflective which means they can be read in sunlight with no backlight necessary as well as in dark environments with the backlight on.

For more information on our full list of graphical displays, please click here. For more information on our full list of sunlight readable displays, please click here.

Display information

Here are links to the raw display:
CFAG12864Q1-TFH - dark pixels on light gray background
CFAG12864Q1-TMI - light pixels on blue background

Here are links to the display + 10072 breakout board:
CFAG12864Q1-TFH-E1 - dark pixels on light gray background
CFAG12864Q1-TMI-E1 - light pixels on blue background

Here are links to the full dev kit. It is comprised of the display + 10072 breakout board + Seeeduino:
CFAG12864Q1-TFH-E1-2 - dark pixels on light gray background
CFAG12864Q1-TMI-E1-2 - light pixels on blue background

Switching Interfaces

In the header section of the code, only one interface should be defined.
To set the interface to 4-Wire SPI, make sure that #define SPI_4W is not commented out
To set the interface to 8080 Parallel, make sure that #define PARALLEL_8080 is not commented out

Connection Details

Connection details for the CFAG12864Q1

CFAG12864Q1 Pin Seeeduino Pin SPI Seeeduino Pin 8080 Connection Description
1 (CSB) D10 A0 Chip Select
2 (RSTB) A1 A1 Reset
3 (A0) A3 A3 Data/Command
4 (RWR) DNC A2 Read/Write 6800 -or- Write 8080
5 (ERD) DNC A4 Enable 6800 -or- Read 8080
6-11 (D0-D5) D0-D5 D0-D5 Data Pins 0-5
12 (D6) SCK D6 Data Pin 6 / SCK
13 (D7) MOSI D7 Data Pin 7 / MOSI
14 (VDD) 5V 5V Power
15 (GND) GND GND Ground
16-20 (NC) DNC DNC See schematic for more details
21 (V0) DNC DNC LCD driving voltage - negative
22 (XV0) DNC DNC LCD driving voltage - positive
23-24 (NC) DNC DNC See schematic for more details
25 (VG) DNC DNC LCD driving voltage - segments
26-30 (NC) DNC DNC See schematic for more details
31 (C86) GND GND Selects 8080 or 6800 in Parallel
32 (PSB) GND VDD Selects SPI or Parallel
33-34 (NC) DNC DNC See schematic for more details

The schematic can be downloaded from here: https://www.crystalfontz.com/products/document/4777/CFA-10072_0v1_Schematic_2022-02-07.pdf\ The controller datasheet can be found here: https://www.crystalfontz.com/controllers/Sitronix/ST7567/

Additional Accessories

Additional accessories for the products can be found at the bottom of each of the product pages.