Lib for Noritake Itron CU209SCPB VFD Module (1 Line, 20 Chars), Serial interface

Dependents:   mbed_CU209SCPB_T20

Embed: (wiki syntax)

« Back to documentation index

CU209SCPB Class Reference

A class for driving Noritake Itron CU209SCPB VFD module. More...

#include <CU209SCPB.h>

Public Types

enum  Baud
 

Enums.

More...

Public Member Functions

 CU209SCPB (PinName TXD, Baud baud=B_19200, SerialBase::Parity parity=SerialBase::Even)
 Constructor for class for driving Noritake Itron CU209SCPB VFD module.
void cls ()
 Clear the screen and locate to 0.
void locate (int column)
 Locate cursor to a screen column.
int columns ()
 Number of screen columns.
int putc (int c)
 Write a character to the Display.
int printf (const char *format,...)
 Write a formatted string to the Display.
void setBrightness (char brightness=CU209SCPB_BRT_DEF)
 Set Brightness.
void setCursor (bool on)
 Set the Cursor mode On/off.
void setFont (int font=0)
 Set Font.
void setUDC (unsigned char udc_idx, UDCData_t udc_data)
 Set User Defined Characters (UDC)

Protected Member Functions

virtual int _putc (int value)
 putc a single character (Stream implementation)
virtual int _getc ()
 Get a single character (Stream implementation)
void _init ()
 Init the Serial interface and the module.

Detailed Description

A class for driving Noritake Itron CU209SCPB VFD module.

Supports 1 line of 20 chars (5x7 matrix segments). Serial bus interface device.

Parameters:
PinNameTX Serial bus pin
Baudbaud selects baudrate (default 19200)
IntParity selects paritybits (default Even)

Definition at line 166 of file CU209SCPB.h.


Member Enumeration Documentation

enum Baud

Enums.

Definition at line 172 of file CU209SCPB.h.


Constructor & Destructor Documentation

CU209SCPB ( PinName  TXD,
Baud  baud = B_19200,
SerialBase::Parity  parity = SerialBase::Even 
)

Constructor for class for driving Noritake Itron CU209SCPB VFD module.

Supports 1 line of 20 chars (5x7 matrix segments). Serial bus interface device.

Parameters:
PinNameTX Serial bus pin
Baudbaud selects baudrate (default 19200)
Parityparity selects paritybits (default Even)

Supports 1 line of 20 chars (5x7 matrix segments). Serial bus interface device.

Parameters:
PinNameTX Serial bus pin
Baudbaud selects baudrate (default 19200)
IntParity selects paritybits (default Even)

Definition at line 37 of file CU209SCPB.cpp.


Member Function Documentation

int _getc (  ) [protected, virtual]

Get a single character (Stream implementation)

Parameters:
none
Returns:
-1

Definition at line 228 of file CU209SCPB.cpp.

void _init (  ) [protected]

Init the Serial interface and the module.

Init the CU209SCPB interface and the module.

Parameters:
none
Returns:
none

Definition at line 50 of file CU209SCPB.cpp.

int _putc ( int  value ) [protected, virtual]

putc a single character (Stream implementation)

Parameters:
valuechar to print
Returns:
value;

Definition at line 198 of file CU209SCPB.cpp.

void cls (  )

Clear the screen and locate to 0.

Parameters:
none
Returns:
none

Definition at line 90 of file CU209SCPB.cpp.

int columns (  )

Number of screen columns.

Parameters:
none
Returns:
columns

Definition at line 121 of file CU209SCPB.cpp.

void locate ( int  column )

Locate cursor to a screen column.

Parameters:
columnThe horizontal position from the left, indexed from 0
Returns:
none

Definition at line 103 of file CU209SCPB.cpp.

int printf ( const char *  format,
  ... 
)

Write a formatted string to the Display.

Parameters:
formatA printf-style format string, followed by the variables to use in formatting the string.
int putc ( int  c )

Write a character to the Display.

Parameters:
cThe character to write to the display
Returns:
char written
void setBrightness ( char  brightness = CU209SCPB_BRT_DEF )

Set Brightness.

Parameters:
charbrightness (3 significant bits, valid range 0..7 (dutycycle linked to number of grids)
Returns:
none
Parameters:
charbrightness (valid range 0..FF)
Returns:
none

Definition at line 131 of file CU209SCPB.cpp.

void setCursor ( bool  on )

Set the Cursor mode On/off.

Parameters:
boolcursor mode
Returns:
none

Definition at line 146 of file CU209SCPB.cpp.

void setFont ( int  font = 0 )

Set Font.

Parameters:
intfont (valid range: 0 == International, other == Katakana)
Returns:
none

Definition at line 161 of file CU209SCPB.cpp.

void setUDC ( unsigned char  udc_idx,
UDCData_t  udc_data 
)

Set User Defined Characters (UDC)

Parameters:
unsignedchar udc_idx The Index of the UDC (0..7)
UDCData_tudc_data The bitpattern for the UDC (7 bytes)
Returns:
none

Definition at line 177 of file CU209SCPB.cpp.