Arduino Code Library Quick Start Guide

Step 1: Download and install Arduino code library

Selecting the library for your VFD module

Determine the series by part number

  • G E 
    1
  • 2 5 6 X 6 4  
    2
  • C –  
  • 7 9 3 3
    3
  •  B
     4
  • 1: VFD module type
  • 2: Number of dots: columns by rows
  • 3: Model class
  • 4: Revision note

You have a GE7000 Series OLED module if the VFD module type is “GE” and the first number of the model class is “7”.

Download GE-7000 Series Arduino library

Determine the series by part number

  • G U 
    1
  • 2 5 6 X 1 2 8 
    2
  • C – D 
  • 9 0 3
    3
  •  M
     4
  • 1: VFD module type
  • 2: Number of dots: columns by rows
  • 3: Model class
  • 4: Capacitance Type

You have a GU-D Series VFD module if the VFD module type is “GU” and the first number of the model class is “9”.

Download GU-D Series Arduino library

Determine the series by part number

  • C U 
    1
  • 1 6 0 2 
    2
  • 5 – 
  • U W 6 J
    3
  • 1: VFD module type
  • 2: Number of characters: columns by rows
  • 3: Model class

You have CU-U Series VFD module if VFD module type is “CU” and first letter of model class is “U”.

Download CU-U Series Arduino library

Determine the series by part number

  • C U 
    1
  • 2 4 0 4 
    2
  • 3 – 
  • Y 1 A
    3
  • 1: VFD module type
  • 2: Number of characters: columns by rows
  • 3: Model class

You have CU-Y Series VFD module if VFD module type is “CU” and first letter of model class is “Y”.

Download CU-Y Series Arduino library

Determine the series by part number

  • G U 
    1
  • 1 4 0 X 3 2 
    2
  • F – 
  • 7 0 0 0
    3
  • 1: VFD module type
  • 2: Number of dots: columns by rows
  • 3: Model class

You have GU-7000 Series VFD module if VFD module type is “GU” and first number of model class is “7”.

Download GU-7000 Series Arduino library

Limitations

The library has the following known limitations:

  • Analog pins: A0, A1, A2, A3, A4, A5 are not supported
  • [GU-D Series] FROM image write does not function.

Step 2: Launch “Hello” Example

Example

Step 3: Select Interface

Uncomment one of the communication interfaces below and set Arduino pins that are connected.

Code

Description

  • For asynchronous serial interface uncomment:
  • For synchronous serial interface uncomment:
  • For the SPI interface uncomment:
  • For the Parallel interface with module pin #3 set to RESET uncomment:
  • For the Parallel interface with module pin #3 set to BUSY uncomment:
  • For the Parallel interface with module pin #3 unset uncomment:

Syntax

  • GE7000_Serial_Async interface(BAUD,SIN,BUSY,RESET)
  • GE7000_Serial_Sync interface(SIN,BUSY,SCK,RESET)
  • GE7000_Serial_SPI interface(MOSI,BUSY,SCK,RESET,CS)
  • GE7000_Parallel interface(PIN3,BUSY,RESET,WR,RD,D0,D1,D2,D3,D4,D5,D6,D7)

Parameters

  • BAUD: The desired baud rate for asynchronous serial communication.
        Supported baud rates are 9600, 19200, 38400, and 115200
  • SIN: The Arduino Uno pin used for the data out signal.
  • BUSY: The Arduino Uno pin used for the busy signal.
  • RESET: The Arduino Uno pin used for the reset signal.
  • SCK: The Arduino Uno pin used for the serial clock signal.
  • MOSI: The Arduino Uno pin used for the master-out-slave-in signal.
  • CS: The Arduino Uno pin used for the chip select signal.
  • WR: The Arduino pin connected to the write pin of the module.
  • RD: The Arduino pin connected to the read pin of the module.
  • PIN3: JRB jumper setting on the module. Type in ‘R’ if set to reset, ‘B’ if set to busy, and ‘N’ if unset.
  • D0,D1,D2,D3,D4,D5,D6,D7: The numbers of the Arduino pins that are connected to the corresponding data pins on the VFD module

Note: The parallel interface and JRB jumper are available only applicable module.

Code

Description

  • For asynchronous serial interface uncomment:
  • For the SPI interface uncomment:
  • For the TWI (I2C) interface uncomment:

Syntax

  • GUD900_Serial_Async interface(BAUD, OUT, IN, BUSY, RESET)
  • GUD900_Serial_SPI interface(MOSI, MISO, BUSY, SCK, RESET, CS)
  • GUD900_TWI interface(slaveAddress, clockFrequency, MBUSY, TRDY)

Parameters

  • BAUD: The desired baudrate for asynchronous serial communication.
  • OUT: The Arduino Uno pin used for the data out signal.
  • IN: The Arduino Uno pin used for the data in signal.
  • BUSY: The Arduino Uno pin used for the busy signal.
  • RESET: The Arduino Uno pin used for the reset signal.
  • MOSI: The Arduino Uno pin used for the master-out-slave-in signal.
  • MISO: The Arduino Uno pin used for the master-in-slave-out signal.
  • SCK: The Arduino Uno pin used for the serial clock signal.
  • CS: The Arduino Uno pin used for the chip select signal.
  • slaveAddress: The slave address of the device. The GUD slave address is 0x50.
  • clockFrequency: The desired communication clock frequency.
  • MBUSY: The Arduino Uno pin used for the module busy signal.
  • TRDY: The Arduino Uno pin used for the transmit-ready busy signal.

Code

Description

  • For synchronous serial interface (UART) uncomment:
  • For parallel I80 8-bit interface uncomment:
  • For parallel I80 4-bit interface uncomment:
  • For parallel M68 8-bit interface uncomment:
  • For parallel M68 4-bit interface uncomment:

Syntax

  • CUU_Serial interface(SIO,STB,SCK)
  • CUU_Parallel_I80 interface(RS,RW,E,D0,D1,D2,D3,D4,D5,D6,D7)
  • CUU_Parallel_I80_4bit interface(RS,RW,E,D4,D5,D6,D7)
  • CUU_Parallel_M68 interface(RS,WR,RD,D0,D1,D2,D3,D4,D5,D6,D7)
  • CUU_Parallel_M68_4bit interface(RS,WR,RD,D4,D5,D6,D7)

Parameters

  • SIO: The number of the Arduino pins that is connected to the data pin on the VFD module
  • STB: The number of the Arduino pins that is connected to strobe pin on the VFD module
  • RW: The number of the Arduino pins that is connected to rw pin on the VFD module
  • SCK: The number of the Arduino pins that is connected to clock pin on the VFD module
  • RS: The number of the Arduino pins that is connected to rs pin on the VFD module
  • E: The number of the Arduino pins that is connected to enable pin on the VFD module
  • WR: The number of the Arduino pins that is connected to write pin on the VFD module
  • RD: The number of the Arduino pins that is connected to read pin on the VFD module
  • D0,D1,D2,D3,D4,D5,D6,D7: The numbers of the Arduino pins that are connected to the
    corresponding data pins on the VFD module

Code

Description

  • For asynchronous serial interface (UART) uncomment:
  • For synchronous serial interface (USART) uncomment:
  • For parallel interface uncomment:

Syntax

  • CUY_Serial_Async interface(BAUD RATE,SIN,BUSY,RESET)
  • CUY_Serial_Sync interface(SIN,BUSY,SCK,RESET)
  • CUY_Parallel interface(BUSY,RESET,WR,D0,D1,D2,D3,D4,D5,D6,D7)

Parameters

  • BAUD RATE: Set the baud rate for the serial communication.
    Supported baud rates are 9600, 19200, 38400, and 115200
  • SIN: The number of the Arduino pins that is connected to the data pin on the VFD module
  • BUSY: The number of the Arduino pins that is connected to busy pin on the VFD module
  • RESET: The number of the Arduino pins that is connected to reset pin on the VFD module
  • SCK: The number of the Arduino pins that is connected to clock pin on the VFD module
  • WR: The number of the Arduino pins that is connected to write pin on the VFD module
  • D0,D1,D2,D3,D4,D5,D6,D7: The numbers of the Arduino pins that are connected to the
    corresponding data pins on the VFD module

Code

Description

  • For asynchronous serial interface (UART) uncomment:
  • For synchronous serial interface (USART) uncomment:
  • For SPI interface uncomment:
  • For parallel interface with module pin #3 set to RESET uncomment:
  • For parallel interface with module pin #3 set to BUSY uncomment:
  • For parallel interface with module pin #3 unset uncomment:

Syntax

  • GU7000_Serial_Async interface(BAUD RATE,SIN,BUSY,RESET)
  • GU7000_Serial_Sync interface(SIN,BUSY,SCK,RESET)
  • GU7000_Serial_SPI interface(SIN,BUSY,SCK,RESET,CS)
  • GU7000_Parallel interface(PIN3,BUSY,RESET,WR,RD,D0,D1,D2,D3,D4,D5,D6,D7)

Parameters

  • BAUD RATE: Set the baud rate for the serial communication.
    Supported baud rates are 9600, 19200, 38400, and 115200
  • SIN: The number of the Arduino pins that is connected to the data pin on the VFD module
  • BUSY: The number of the Arduino pins that is connected to busy pin on the VFD module
  • RESET: The number of the Arduino pins that is connected to reset pin on the VFD module
  • SCK: The number of the Arduino pins that is connected to clock pin on the VFD module
  • CS: The number of the Arduino pins that is connected to chip select pin on the VFD module
  • PIN3: JRB Jumper setting on the VFD module. Type in “R” if set to reset, “B” if set to busy, and “N” if unset
  • WR: The number of the Arduino pins that is connected to write pin on the VFD module
  • RD: The number of the Arduino pins that is connected to read pin on the VFD module
  • D0,D1,D2,D3,D4,D5,D6,D7: The numbers of the Arduino pins that are connected to the
    corresponding data pins on the VFD module

Step 4: Configure setup()

Code

Description

  • Specify the number of characters in columns by rows:
  • Specify the model class of the module:
  • Specify the generation of the module:

Code

Description

  • Specify the number of characters in columns by rows:
  • Specify the model class of the module:
  • Specify the generation of the module:
  • Specify the desired font style.

Code

Description

  • Specify the number of characters in columns by rows:
  • For brightness boost suppported VFD module uncomment:
  • For BC-VFD VFD modules uncomment:
  • For selecting Japanese font for BC-VFD VFD modules uncomment:
  • For selecting European font for BC-VFD VFD modules uncomment:

Code

Description

  • Specify the number of characters in columns by rows:
  • Enter the model class. Applicable model classes are Y1A, YX1A, Y100, and YX100. E.g. Y1A for CU24043-Y1A:

Code

Description

  • Specify the number of dots in columns by rows:
  • Enter the 4-digit model class number. E.g. E.g. 7040 for GU140X16G-7040A:
  • For B generation VFD modules uncomment:

Step 5: Upload the sketch to Arduino

Upload the sketch to Arduino