FT800

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
ajneal4uk
Posts: 22
Joined: Sun Mar 03, 2013 10:30 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

FT800

Post by ajneal4uk »

Hi;

I have a FT800 display complete with an arduino controller (VM800).

I've been looking at Ben's arduino converted component vs the arduino code produced by the Eve Editor.

The version below changes the pixel dot Red then Green then Blue.

Question is how do you import the library's into flowcode?

Andy



#include <EEPROM.h>
#include <SPI.h>
#include <Wire.h>
#include <FT_VM800P43_50.h>

FT800IMPL_SPI FTImpl(FT_CS_PIN,FT_PDN_PIN,FT_INT_PIN);

int x = 0;

void setup()
{
FTImpl.Init(FT_DISPLAY_RESOLUTION);
FTImpl.SetDisplayEnablePin(FT_DISPENABLE_PIN);
FTImpl.SetAudioEnablePin(FT_AUDIOENABLE_PIN);
FTImpl.DisplayOn();
FTImpl.AudioOn();

FTImpl.DLStart();
FTImpl.Finish();
FTImpl.DLStart();
FTImpl.DLEnd();
FTImpl.Finish();
}

void loop()
{
FTImpl.DLStart();
FTImpl.PointSize(320);
//FTImpl.ColorRGB(255, 0, 0);
if (x==0) {FTImpl.ColorRGB(255, 0, 0);}
if (x==1) {FTImpl.ColorRGB(0, 255, 0);}
if (x==2) {FTImpl.ColorRGB(0, 0, 255);}
FTImpl.Begin(FT_POINTS);
FTImpl.Vertex2f(1056, 2128);
FTImpl.DLEnd();
FTImpl.Finish();
delay(500);

x=x+1;
if (x>2) {x=0;}

}

Post Reply