Routines to talk to Sure electronics seven segment displays. More...
#include "sure_7seg.h"
Go to the source code of this file.
Functions | |
uns8 | sure_7seg_convert (uns8 digit) |
void | sure_7seg_setup () |
Setup ports and pins to communicate to Sure display. | |
void | sure_7seg_write_str (char *data) |
Display ASCII string to 7 segment displays. |
Definition in file sure_7seg.c.
uns8 sure_7seg_convert | ( | uns8 | digit | ) |
Definition at line 48 of file sure_7seg.c.
Referenced by sure_7seg_write_str().
void sure_7seg_setup | ( | ) |
Set up ports and pins as appropriate to communicate via SPI to Sure 7 segment displays
Definition at line 43 of file sure_7seg.c.
References spi_setup().
void sure_7seg_write_str | ( | char * | data | ) |
Converts ASCII to the appropriate magic characters to display on a Sure 7 segment display. Only numbers 0-9 and space are implented for now.
To create your own characters, add together: 0x40 -------- | | 0x02 | | 0x20 | 0x01 | |------| | | 0x04 | | 0x10 | | -------- 0x08
Definition at line 64 of file sure_7seg.c.
References clear_pin, set_pin, spi_write_sure(), sure_7seg_convert(), and uns8.