ReflexBall Rally
All Data Structures Files Functions Variables Macros
LED.h
Go to the documentation of this file.
1 #ifndef _led_h_
2 #define _led_h_
3 
4 #define PRE1 (0 << 3);
5 #define PRE2 (1 << 3);
6 #define PRE4 (2 << 3);
7 #define PRE8 (3 << 3);
8 #define PRE16 (4 << 3);
9 #define PRE32 (5 << 3);
10 #define PRE64 (6 << 3);
11 #define PRE128 (7 << 3);
12 
13 #define SCROLL_SPEED 5
14 
15 // Public
16 void initLED(); // Initialize the LED display
17 void LEDsetString(char *string); // Used to scroll a string
18 void LEDRunOnce(char *firstString, char* secondString); // Used to sroll the first string once and then show the second string afterwards
19 
20 // Private
21 void clockLed(unsigned char digit);
22 unsigned char convertChar(char input);
23 void moveVideoBuffer();
24 void LEDupdate();
25 void timer2int();
26 
27 #endif