hc4led.h File Reference

Routines to access four digit LED display. More...

Include dependency graph for hc4led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __hc4led_h   include

Functions

void hc4led_setup ()
void hc4led_write_str (char *data)

Detailed Description


Define Documentation

#define __hc4led_h   include

Function Documentation

void hc4led_setup (  ) 

00039                     {
00040     spi_setup();
00041 }

Here is the call graph for this function:

void hc4led_write_str ( char *  data  ) 

00060                                   {
00061 
00062 uns8 count, digit;
00063 char converted[5];
00064 
00065     count = 4;
00066     do {
00067         digit = data[count-1];
00068         converted[count-1] = hc4led_convert(digit);
00069         count--;
00070        } while (count > 0);
00071     count = 4;
00072     do {
00073         digit = converted[count-1];
00074         spi_write(digit);
00075         count--;
00076        } while (count > 0);
00077        
00078 }

Here is the call graph for this function:


Generated on Fri Aug 19 09:05:35 2011 for Pic Pack Library by  doxygen 1.6.1