GU-TFT Tutorial Part 4.5 | Arduino Source Code

Noritake VFD  Mar 30, 2017

 This is the code that was demonstrated in part 4.5 of the GU-TFT tutorial series.

[CODE]

#include

SoftwareSerial mySerial(10, 11);

void setup() {
mySerial.begin(38400);
GUTFT_init();
}

void loop() {
recallImage(0x10, 0x0000, 0x00, 800, 800, 480, 0x91);
delay(5000);
recallImage(0x10, 0x0000, 0x0c, 800, 800, 480, 0x91);
delay(5000);
recallImage(0x10, 0x0000, 0x18, 800, 800, 480, 0x91);
delay(5000);
}

void GUTFT_init(){
mySerial.write(0x1b);
mySerial.write(0x40);
}

void recallImage(byte memory, unsigned address, byte addressE, unsigned definedX, unsigned displayX, unsigned displayY, byte format){
mySerial.write(0x1f);
mySerial.write(0x28);
mySerial.write(0x66);
mySerial.write(0x10);
mySerial.write(memory);
mySerial.write(address);
mySerial.write(address >> 8);
mySerial.write(addressE);
mySerial.write(definedX);
mySerial.write(definedX >> 8);
mySerial.write(displayX);
mySerial.write(displayX >> 8);
mySerial.write(displayY);
mySerial.write(displayY >> 8);
mySerial.write(format);
}

[/CODE]