This is Arduino sample code for the CFAF480272Hx-043Sx family of displays. These displays are 4.3" TFTs which use the Sitronix ST7282 LCD controller. This LCD controller supports a 24 bit parallel RGB interface. This demonstration code has been written for use with the BT817 Embedded Video Engine.
Here are links to our active displays:
CFAF480272H0-043SN
CFAF480272H0-043SC
CFAF480272H0-043SR
Where N, C, and R correspond to non-touchscreen, capacitive touchscreen and resistive touchscreen variants respectively.
For more information about other TFT offerings, please see our full list here
Pin | Symbol | Function |
---|---|---|
1 | VLED- | Backlight cathode |
2 | VLED+ | Backlight anode |
3 | GND | Ground |
4 | Vlogic | Logic power supply |
5-12 | R0-7 | Red data bus lines |
13-20 | G0-7 | Green data bus lines |
21-28 | B0-7 | Blue data bus lines |
29 | GND | Ground |
30 | DCLK | Dot clock signal |
31 | DISP | Display on/off control |
32 | HSYNC | Horizontal sync |
33 | VSYNC | Vertical sync |
34 | DEN | Data enable |
35 | NC | No connection |
36 | GND | Ground |
37-40 | NC | No connection (SN and SC) |
37 | Y+ | SR variant |
38 | X- | SR variant |
39 | Y- | SR variant |
40 | X+ | SR variant |
Pin | Symbol | Function |
---|---|---|
1-2 | NC | No connection |
3 | RES | Reset |
4 | GND | Ground |
5 | INT | Interrupt |
6 | SDA | I2C data |
7 | SCL | I2c clock signal |
8-9 | GND | Ground |
10 | VDD | Logic voltage |
To toggle on or off different demonstrations, some defines in "BT817_defines.h" can be changed.
#define BMP_DEMO (0)
#define BMP_SCROLL (0)
#define SOUND_DEMO (0)
#define SOUND_VOICE (0)
#define SOUND_PLAY_TIMES (10)
#define LOGO_DEMO (1)
#define LOGO_PNG_0_ARGB2_1 (1)
#define BOUNCE_DEMO (1)
#define MARBLE_DEMO (0)
#define TOUCH_DEMO (0)
BMP_DEMO
- Toggled to 1 will display "splash.a8z" (after it has been written to flash using PROGRAM_FLASH_FROM_USD (1)
)
BMP_SCROLL
- Toggled to 1 will display "clouds.a8z" (after it has been written to flash using PROGRAM_FLASH_FROM_USD (1)
) scrolling across the screen
LOGO_DEMO
- Toggled to 1 will display the Crystalfontz Logo from "Round_Logos.cpp"
BOUNCE_DEMO
- Toggled to 1 will show a ball bouncing around the screen
MARBLE_DEMO
- Toggled to 1 will demonstrate the earth rotating and bouncing around on the screen in place of the ball (after bluemarb.a8z has been written to flash using PROGRAM_FLASH_FROM_USD (1)
TOUCH_DEMO
- Toggled to 1 will enable the touch screen (only compatible on touch versions of the display)