7 Segment LED Displaydriver, I2C interface, SAA1064

Dependents:   812_hello

Embed: (wiki syntax)

« Back to documentation index

SAA1064 Class Reference

Create an SAA1064 object connected to the specified I2C bus and deviceAddress. More...

#include <SAA1064.h>

Public Member Functions

 SAA1064 (I2C *i2c, uint8_t deviceAddress=SAA1064_SA0)
 Create a SAA1064 LED displaydriver object using a specified I2C bus and slaveaddress.
void setIntensity (uint8_t intensity)
 Set segment brightness.
void write (uint8_t digit1, uint8_t digit2, uint8_t digit3, uint8_t digit4)
 Write digits.
void writeInt (int value, uint8_t dp_digit=0, bool leading=true)
 Write Integer.
void snake (uint8_t count)
 snake: show a short animation
void splash (uint8_t count)
 splash: show a short animation

Protected Member Functions

void _init ()
 Initialise LED driver.

Detailed Description

Create an SAA1064 object connected to the specified I2C bus and deviceAddress.

Definition at line 115 of file SAA1064.h.


Constructor & Destructor Documentation

SAA1064 ( I2C *  i2c,
uint8_t  deviceAddress = SAA1064_SA0 
)

Create a SAA1064 LED displaydriver object using a specified I2C bus and slaveaddress.

Parameters:
I2C&i2c the I2C port to connect to
chardeviceAddress the address of the SAA1064

Definition at line 18 of file SAA1064.cpp.


Member Function Documentation

void _init (  ) [protected]

Initialise LED driver.

Definition at line 214 of file SAA1064.cpp.

void setIntensity ( uint8_t  intensity )

Set segment brightness.

Parameters:
intensityintensity value, valid Range between 0-7, 0 = 0 mA/segment, 1 = 3 mA/segment etc

Definition at line 28 of file SAA1064.cpp.

void snake ( uint8_t  count )

snake: show a short animation

Parameters:
countnumber of times animation is repeated, valid range 0..15

Definition at line 159 of file SAA1064.cpp.

void splash ( uint8_t  count )

splash: show a short animation

Parameters:
countnumber of times animation is repeated, valid range 0..15

Definition at line 194 of file SAA1064.cpp.

void write ( uint8_t  digit1,
uint8_t  digit2,
uint8_t  digit3,
uint8_t  digit4 
)

Write digits.

Parameters:
digit1LED segment pattern for digit1 (MSB)
digit2LED segment pattern for digit2
digit3LED segment pattern for digit3
digit4LED segment pattern for digit4 (LSB)

Definition at line 49 of file SAA1064.cpp.

void writeInt ( int  value,
uint8_t  dp_digit = 0,
bool  leading = true 
)

Write Integer.

Parameters:
valueinteger value to display, valid range -999...9999
dp_digitdigit where decimal point is set, valid range 1..4 (no DP shown for dp_digit = 0)
leadingsuppress leading zero (false=show leading zero, true=suppress leading zero)

Definition at line 70 of file SAA1064.cpp.