info@panadisplay.com
Lub Nrig Zej Zog Studio FT900 thiab Emulator Platforms

Lub Nrig Zej Zog Studio FT900 thiab Emulator Platforms

Apr 26, 2019

4 Txhim Kho Nruab Nrab

Lub Visual Studio, FT900 thiab Emulator platforms siv ib hom ntaub ntawv rau lub ntsiab

daim ntawv thov (eg Gradient.c) uas nyob rau hauv lem hu lub tsev qiv ntawv kev khiav dej num thiab cov lus txib ntawm

cov ntaub ntawv library hauv qhov project.

Txoj cai muaj xws li #defines thiaj li yuav txhawb tau cov tswvcuab sib txawv ntawm cov tswvcuab thiab tseem yuav tso cai rau

tib qhov chaws los txhawb qhov sib txawv ntawm qhov screen thiab ntau npaum li cas hauv tsev neeg. Piv txwv, rau

xaiv qhov tseeb cov ntaub ntawv rau FT80x / FT81x, thaum siv FT81x nta lossis tso cai rau

capacitive lossis resistive screen hom.

Tom qab ntsaws qhov ua qauv qhia ua ntej thiab ua ntej yuav khiav nws, thov xyuas kom meej tias cov chaw sib phim

qhov kev kho vajtse.

Cov ntu hauv qab no qhia txog qhov tseem ceeb ntawm txhua lub hom phiaj.

Nrig txog kev pom Studio

Ib ntu ntawm platform.h cov ntaub ntawv muaj nyob hauv qab no.

 Qhov chaw xub thawj yog tso cai rau kev siv tus qauv FT8xx siv. Ib txhais

yuav tsum tsis txhob muab tswv yim rau kev sib txuas lus ntawm pawg thawj coj siv. Cov ntaub ntawv siv ntxiv #if

sau tseg cov chaw sib txuas rau lwm qhov chaw raws li tus qauv.

 Qhov thib ob ntawm qhov tseem ceeb tuaj yeem siv tau rau thaum muaj kev tswj hwm

#defines ib tus zuj zus mus muab ib qho kev cai ua ke. Hauv qhov no, qhov txhais los ntawm cov

thawj nqe lus tseem ceeb yuav muab tswv yim.

Nco ntsoov tias tom qab hloov chaw, nws yuav tsum rov tsim qhov project hauv Visual Studio li ntawd

tias qhov chaws rov ua nrog cov chaw tshiab thiab cov kev xaiv.


#ifndef _FT_PLATFORM_H_

#define _FT_PLATFORM_H_

/ * platform specific macros * /

#define MSVC_PLATFORM (1) // pab los ntawm lub neej rau MSVC platform

/ * module specific macros * /

#define VA800A_SPI (1)

#define VM800B43_50 (1) Xaiv cov hauv qab no kom phim lub rooj tsav xwm EVE siv

/ # define VM800B35 (1)

/ # txhais kom meej VM801B43_50 (1)

/ # define VM810C50 (1)

#ifdef VM800B43_50

/ * Txhais kom meej txhua tus macros hais rau VM800B43_50 module * /

#define FT_800_ENABLE (1)

#define DISPLAY_RESOLUTION_WQVGA (1)

#define RESISTANCE_THRESHOLD (1200)

#endif / * VM800B43_50 * /

#ifdef VM800B35

#define FT_800_ENABLE (1)

#define DISPLAY_RESOLUTION_QVGA (1)

#define RESISTANCE_THRESHOLD (1200)

#endif / * VM800B35 * /

#ifdef VM801B43_50

#define FT_801_ENABLE (1)

#define DISPLAY_RESOLUTION_WQVGA (1)

#endif

#ifdef VM810C50

/ * Txhais kom meej txhua tus macros hais rau VM800B43_50 module * /

#define FT_810_ENABLE (1)

#define DISPLAY_RESOLUTION_WVGA (1)

#define RESISTANCE_THRESHOLD (1200)

#endif / * VM810C50 * /

/ * Module txuas los ntawm PC rau cov modules yooj yim * /

#ifdef VA800A_SPI

#define ENABLE_SPIT_SINGLE (1)

#endif / * VA800A_SPI * /

/ * Kev cai configuration * /

#if (! defined (VM800B43_50) &&! defined (VM800B35) &&! defined (VM801B43_50) &&! defined (VM810C50))

/ * Zaub configuration meej macros * / Seem no tso cai rau cov kev cai siv los tswj tus kheej

#define DISPLAY_RESOLUTION_QVGA (1) yog hais tias tsis muaj kev xaiv ua rau hom ntu module

#define DISPLAY_RESOLUTION_WQVGA (1)

#define DISPLAY_RESOLUTION_WVGA (1)

#define DISPLAY_RESOLUTION_HVGA_PORTRAIT (1)

/ * Chip configuration meej macros * /

#define FT_800_ENABLE (1)

#define FT_801_ENABLE (1)

#define FT_810_ENABLE (1)

#define FT_811_ENABLE (1)

#define FT_812_ENABLE (1)

#define FT_813_ENABLE (1)

/ * SPI tej macros - sib hloov cov sij hawm keyboards rau SPI nkaus xwb, hu thiab siv quad siv * /

#define ENABLE_SPIT_SINGLE (1)

#define ENABLE_SPI_DUAL (1)

#define ENABLE_SPI_QUAD (1)

/ * Saib cov neeg tsav tsheb teeb tsa - tsuas yog rau ME900EV1 modules * /

#define ENABLE_ILI9488_HVGA_PORTRAIT (1)

#endif

#if txhais (FT_800_ENABLE) || sau tseg (FT_801_ENABLE)

#define FT_80X_ENABLE (1)

#endif

#if (txhais (FT_810_ENABLE) || txhais (FT_811_ENABLE) || txhais (FT_812_ENABLE) || txhais tseg (FT_813_ENABLE))

#define FT_81X_ENABLE (1)

#endif

/ * C Lub Tsev Qiv Ntawv Ntxiv * /

#include

#include

#include

#include

#include

#include

#include

#include

/ * D2xx thiab SPI los ntawm FTDI cov ntaub ntawv * /

#include "ftd2xx.h"

#include "LibMPSSE_spi.h"

/ * HAL inclusions * /

#include "FT_DataTypes.h"

#include "FT_Gpu_Hal.h"

#include "FT_Gpu.h"

#include "FT_CoPro_Cmds.h"

#include "FT_Hal_Utils.h"

/ * Macros kev mus rau kev txhim kho * /

#define BUFFER_OPTIMIZATION (1)

#define BUFFER_OPTIMIZATION_DLRAM (1)

#define BUFFER_OPTIMIZATION_CMDRAM (1)

#define MSVC_PLATFORM_SPI (1)

#define FT800_SEL_PIN 0

#define FT800_PD_N 7

#endif / * _ FT_PLATFORM_H _ * /

/ * Tsis muaj dab tsi tshaj qhov no * /

17

Product Page

Daim ntawv tawm tswv yim Copyright © Bridgetek Limited

Daim Ntawv Ceeb Toom

AN_391 EVE Platform Guide

Tshooj 1.1

Daim ntawv No .: BRT_000055 Clearance No .: BRT # 046

Arduino

Ib ntu ntawm platform.h cov ntaub ntawv muaj nyob hauv qab no.

 Qhov chaw xub thawj yog tso cai rau kev siv tus qauv FT8xx siv. Ib txhais

yuav tsum tsis txhob muab tswv yim rau kev sib txuas lus ntawm pawg thawj coj siv. Cov ntaub ntawv siv ntxiv #if

sau tseg cov chaw sib txuas rau lwm qhov chaw raws li tus qauv.

 Qhov thib ob ntawm qhov tseem ceeb tuaj yeem siv tau rau thaum muaj kev tswj hwm

#defines ib tus zuj zus mus muab ib qho kev cai ua ke. Hauv qhov no, qhov txhais los ntawm cov

thawj nqe lus tseem ceeb yuav muab tswv yim.

Nco ntsoov tias tom qab hloov cov nqis, nws yuav tsum rov tsim dua rau qhov project ntawm Verify (zuam)

khawm.