Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

PrimeVfd

PrimeVfd()

Description

Creates a variable of type PrimeVfd used to control the VFD.

Syntax

PrimeVfd(pinConfig)

Parameters

pinConfig: the pin configuration to use. The library supports only a limited number of pin options. From PrimeVfd.h:

enum PinConfig
  {
    // See the implementation of selectRegisterPinsForConfig() for how these values are used.
    // On the display, the pins are:
    //
    // 2/TP2   - +5v
    // 4/TP4   - data
    // 6/TP6   - clock
    // 8/TP8   - latch (simplified: low = blanks output, low->high = latch data, high display latched data)
    // 10/TP10 - gnd

    PIN_CONFIG_PORT_D_OPTION_1, // Port D/Arduino pins 2(data), 3(clock), 4(latch).
    PIN_CONFIG_PORT_D_OPTION_2, // Port D/Arduino pins 2(data), 3(clock), 5(latch).
    PIN_CONFIG_PORT_D_OPTION_3, // Port D/Arduino pins 2(data), 3(clock), 6(latch).
    PIN_CONFIG_PORT_D_OPTION_4, // Port D/Arduino pins 2(data), 3(clock), 7(latch).

    // When using multiple displays, Port B options can not be used at the same time.
    PIN_CONFIG_PORT_B_OPTION_1,
    // Option 1 uses SS (latch), SCK (clock) and MOSI (data) of Arduino Uno, etc.
    PIN_CONFIG_ARDUINO_SPI_PINS = PIN_CONFIG_PORT_B_OPTION_1,
    PIN_CONFIG_PORT_B_OPTION_2,
    // Option 2 uses SS (latch), SCK (clock) and MOSI (data) of Arduino Mega, Teensy, etc.
    PIN_CONFIG_ARDUINO_MEGA_SPI_PINS = PIN_CONFIG_PORT_B_OPTION_2,

    NUM_PIN_CONFIGS
  };

Example

See HelloWorld example.

See Also

PrimeVfd Home