Home  ·  Forum  ·  Contact us  ·  Online Shop   VFD Test Reports Follow us on Twitter Follow us on Facebook     Visit our Portuguese site
Noritake VFD

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

Code:

#include <SoftwareSerial.h>

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);
}

 

Quote 0 0

Add a Website Forum to your website.