2007-01-02 21:30:40 +00:00
|
|
|
#ifndef _SAA1064_H_
|
|
|
|
#define _SAA1064_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file saa1064.h
|
|
|
|
* \brief I2C-connection to the SAA1064 LED-driver
|
|
|
|
* \author Ronald Schaten
|
2007-01-03 12:38:55 +00:00
|
|
|
* \version $Id: saa1064.h,v 1.2 2007/01/03 12:38:55 rschaten Exp $
|
2007-01-02 21:30:40 +00:00
|
|
|
*
|
|
|
|
* License: See documentation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* based on http://www.mulder.franken.de/ntpdcfledclock/ */
|
|
|
|
|
2007-01-03 12:38:55 +00:00
|
|
|
/**
|
|
|
|
* This sets one digit on the LED module.
|
|
|
|
* \param digit the number of the digit (0 - 3)
|
|
|
|
* \param val a bitfield that contains the values to set
|
|
|
|
*/
|
2007-01-02 21:30:40 +00:00
|
|
|
void set_led_digit(uint8_t digit, uint8_t val);
|
|
|
|
|
2007-01-03 12:38:55 +00:00
|
|
|
/**
|
|
|
|
* Configures the brightness of the LEDs. Or rather: the current the driver allows through them.
|
|
|
|
* \param led_brightness The values 0 through 7 can be used, corresponding to 0 through 21 mA
|
|
|
|
*/
|
2007-01-02 21:30:40 +00:00
|
|
|
void set_led_brightness(uint8_t led_brightness);
|
|
|
|
|
2007-01-03 12:38:55 +00:00
|
|
|
/**
|
|
|
|
* Initialize the LED module. This basically enables the pullups on the I2C Bus
|
|
|
|
* pins.
|
|
|
|
*/
|
2007-01-02 21:30:40 +00:00
|
|
|
void led_init(void);
|
|
|
|
|
|
|
|
#endif
|