Wim Huiskamp / LC75711

Dependents:   mbed_LC75711

Embed: (wiki syntax)

« Back to documentation index

LC75711_ASTON Class Reference

Constructor for class for driving Sanyo LC75711 VFD controller as used in ASTON. More...

#include <LC75711.h>

Inherits LC75711.

Public Types

enum  Icon
 

Enums for Icons.

More...
enum  Mode
 

Enums for display mode.

More...

Public Member Functions

 LC75711_ASTON (PinName mosi, PinName sclk, PinName cs)
 Constructor for class for driving Sanyo LC75711 VFD controller as used in ASTON.
int putc (int c)
 Write a character to the Display.
int printf (const char *format,...)
 Write a formatted string to the Display.
void locate (int column)
 Locate cursor to a screen column.
void cls (bool clrAll=false)
 Clear the screen and locate to 0.
void setIcon (Icon icon)
 Set Icon.
void clrIcon (Icon icon)
 Clr Icon.
int columns ()
 Number of screen columns.
void cls ()
 Clear the screen and locate to 0.
void setBlink (int grids=LC75711_GR_ALL)
 Set the Blink mode.
void clrBlink (int grids=LC75711_GR_ALL)
 Clr the Blink mode.
void setBrightness (char brightness=LC75711_BRT_DEF)
 Set Brightness.
void setDisplay (bool on)
 Set the Display mode On/off.
void setUDC (unsigned char udc_idx, UDCData_t udc_data)
 Set User Defined Characters (UDC)
void writeData (char data, char address)
 Write Data to LC75711.
void writeAData (char adata, char address)
 Write Additional Data to LC75711.

Protected Member Functions

virtual int _putc (int value)
 Write a single character (Stream implementation)
virtual int _getc ()
 Get a single character (Stream implementation)

Detailed Description

Constructor for class for driving Sanyo LC75711 VFD controller as used in ASTON.

Supports 10 Grids of 35 Segments without additional Segments and uses Grid 11 for Icon segments.

Parameters:
PinNamemosi, sclk, cs SPI bus pins

Definition at line 514 of file LC75711.h.


Member Enumeration Documentation

enum Icon

Enums for Icons.

Aston display uses Grid 11 to show Icons. The Icons are each connnected to one of the 35 segments. Icons are controlled by redefining UDC_0. Icon Enums encode UDC_0 byte index in 8 MSBs and encode Icon bit/segment in 8 LSBs

Definition at line 524 of file LC75711.h.

enum Mode [inherited]

Enums for display mode.

Definition at line 355 of file LC75711.h.


Constructor & Destructor Documentation

LC75711_ASTON ( PinName  mosi,
PinName  sclk,
PinName  cs 
)

Constructor for class for driving Sanyo LC75711 VFD controller as used in ASTON.

Constructor for class for Sanyo LC75711 VFD controller as used in ASTON.

Supports 10 Grids of 35 Segments without additional Segments and uses Grid 11 for Icon segments.

Parameters:
PinNamemosi, sclk, cs SPI bus pins

Supports 10 Grids of 35 Segments without additional Segments and uses Grid 11 for Icon segments.

Parameters:
PinNamemosi, miso, sclk, cs SPI bus pins

Definition at line 334 of file LC75711.cpp.


Member Function Documentation

int _getc (  ) [protected, virtual]

Get a single character (Stream implementation)

Parameters:
none
Returns:
-1

Definition at line 471 of file LC75711.cpp.

int _putc ( int  value ) [protected, virtual]

Write a single character (Stream implementation)

Parameters:
valuechar to print
Returns:
value;

Definition at line 433 of file LC75711.cpp.

void clrBlink ( int  grids = LC75711_GR_ALL ) [inherited]

Clr the Blink mode.

Parameters:
intgrids selected grids for Blinking disable (default = all)
Returns:
none

Definition at line 121 of file LC75711.cpp.

void clrIcon ( Icon  icon )

Clr Icon.

Parameters:
IconEnums Icon Encodes UDC_0 byte index in 8 MSBs and encodes Icon bit/segment in 8 LSBs
Returns:
none

Definition at line 415 of file LC75711.cpp.

void cls (  ) [inherited]

Clear the screen and locate to 0.

Parameters:
none
Returns:
none

Definition at line 88 of file LC75711.cpp.

void cls ( bool  clrAll = false )

Clear the screen and locate to 0.

Parameters:
boolclrAll Clear Icons also (default = false)
boolclrAll Clear Icons also (default = false)
Returns:
none

Definition at line 373 of file LC75711.cpp.

int columns (  )

Number of screen columns.

Parameters:
none
Returns:
columns

Definition at line 363 of file LC75711.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 349 of file LC75711.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 setBlink ( int  grids = LC75711_GR_ALL ) [inherited]

Set the Blink mode.

Parameters:
intgrids selected grids for Blinking enable (default = all)
Returns:
none

Definition at line 105 of file LC75711.cpp.

void setBrightness ( char  brightness = LC75711_BRT_DEF ) [inherited]

Set Brightness.

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

Definition at line 137 of file LC75711.cpp.

void setDisplay ( bool  on ) [inherited]

Set the Display mode On/off.

Parameters:
booldisplay mode
Returns:
none

Definition at line 154 of file LC75711.cpp.

void setIcon ( Icon  icon )

Set Icon.

Parameters:
IconEnums Icon Encodes UDC_0 byte index in 8 MSBs and encodes Icon bit/segment in 8 LSBs
Returns:
none

Definition at line 397 of file LC75711.cpp.

void setUDC ( unsigned char  udc_idx,
UDCData_t  udc_data 
) [inherited]

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 LC75711.cpp.

void writeAData ( char  adata,
char  address 
) [inherited]

Write Additional Data to LC75711.

Parameters:
charadata Additional code (annunciator)
charaddress Parameter for data
Returns:
none

Definition at line 240 of file LC75711.cpp.

void writeData ( char  data,
char  address 
) [inherited]

Write Data to LC75711.

Parameters:
chardata Character code
charaddress Parameter for data
Returns:
none

Definition at line 223 of file LC75711.cpp.