Difference between revisions of "Vfd"

From Review or Discard at Will
Jump to: navigation, search
(Documentation: add details datasheet)
(formatting...)
Line 3: Line 3:
 
==VFD==
 
==VFD==
  
 
+
===Hello world code===
 
<syntaxhighlight lang="c" g="" style="max-height:25em; overflow:auto">   
 
<syntaxhighlight lang="c" g="" style="max-height:25em; overflow:auto">   
 
// jha 9 July 2016
 
// jha 9 July 2016

Revision as of 11:06, 26 September 2023

Purchased from ePay arduino LDC library works. 1/2 byte word

VFD

Hello world code

  
// jha 9 July 2016
// I bought a VFD on eBay that uses an LCD compatible configuration

#include <LiquidCrystal.h>

/*
  The circuit:
   LCD RS pin to digital pin 12
   LCD Enable pin to digital pin 11
   LCD D4 pin to digital pin 5
   LCD D5 pin to digital pin 4
   LCD D6 pin to digital pin 3
   LCD D7 pin to digital pin 2
*/

int RS = 12;
int EN = 11;
int D4 = 5;
int D5 = 4;
int D6 = 3;
int D7 = 2;

// initialize the library with the numbers of the interface pins
// LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
LiquidCrystal lcd(RS, EN, D4, D5, D6, D7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");

}
void loop() {
  lcd.noDisplay();
  delay(500);
  // Turn on the display:
  lcd.display();
  delay(500);
}


Documentation

5X7 Dot Character VFD Module CU24025ECPB-U1J

CU24025ECPB-U1J.pdf

More detailed

File:Noritake CU24025ECPB-U1J 2x24 VFD.pdf