Subversion Repositories Code-Repo

Rev

Rev 107 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef __led_driver_h
#define __led_driver_h

static char LED_CHAR_BLANK = 0b00000000;
static char LED_CHAR_A = 0b11101110;
static char LED_CHAR_B = 0b11111110;
static char LED_CHAR_C = 0b10011100;
static char LED_CHAR_D = 0b11111100;
static char LED_CHAR_E = 0b10011110;
static char LED_CHAR_F = 0b10001110;
static char LED_CHAR_U = 0b01111100;

static char LED_CHAR_0 = 0b11111100;
static char LED_CHAR_1 = 0b01100000;
static char LED_CHAR_2 = 0b11011010;
static char LED_CHAR_3 = 0b11110010;
static char LED_CHAR_4 = 0b01100110;
static char LED_CHAR_5 = 0b10110110;
static char LED_CHAR_6 = 0b10111110;
static char LED_CHAR_7 = 0b11100100;
static char LED_CHAR_8 = 0b11111110;
static char LED_CHAR_9 = 0b11110110;

//#define LED_CHAR_BLANK (char)0b00000000;
//#define LED_CHAR_A (char)0b11101110;
//#define LED_CHAR_B (char)0b11111110;
//#define LED_CHAR_C (char)0b10011100;
//#define LED_CHAR_D (char)0b11111100;
//#define LED_CHAR_E (char)0b10011110;
//#define LED_CHAR_F (char)0b10001110;
//
//#define LED_CHAR_0 (char)0b11111100;
//#define LED_CHAR_1 (char)0b01100000;
//#define LED_CHAR_2 (char)0b11011010;
//#define LED_CHAR_3 (char)0b11110010;
//#define LED_CHAR_4 (char)0b01100110;
//#define LED_CHAR_5 (char)0b10110110;
//#define LED_CHAR_6 (char)0b10111110;
//#define LED_CHAR_7 (char)0b11100100;
//#define LED_CHAR_8 (char)0b11111110;
//#define LED_CHAR_9 (char)0b11110110;

void led_driver_init(void);
void led_driver_clock(void);
void led_driver_data(char, char);
void led_driver_num(unsigned char);

#endif