Vfd

From Review or Discard at Will
Revision as of 18:41, 25 September 2023 by Jeffa (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

VFD

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