Lab 6 code.
Dependencies: mbed
Fork of WaG by
display.h@56:048b30c9f2a1, 2018-04-06 (annotated)
- Committer:
- spm71
- Date:
- Fri Apr 06 18:25:19 2018 +0000
- Revision:
- 56:048b30c9f2a1
- Parent:
- 42:6cba679a4ee4
Final update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
phn10 | 5:92cdff7fb885 | 1 | /****************************************************************************** |
phn10 | 5:92cdff7fb885 | 2 | * EECS 397 |
phn10 | 5:92cdff7fb885 | 3 | * |
spm71 | 42:6cba679a4ee4 | 4 | * Assignment Name: Lab 6: WaG |
phn10 | 5:92cdff7fb885 | 5 | * |
phn10 | 5:92cdff7fb885 | 6 | * Authors: Sam Morrison and Phong Nguyen |
phn10 | 5:92cdff7fb885 | 7 | * File name: display.h |
phn10 | 5:92cdff7fb885 | 8 | * Purpose: Contain function prototypes and consant variable |
phn10 | 5:92cdff7fb885 | 9 | * |
spm71 | 18:0e281922212c | 10 | * Created: 03/01/2018 |
spm71 | 42:6cba679a4ee4 | 11 | * Last Modified: 03/29/2018 |
phn10 | 5:92cdff7fb885 | 12 | * |
phn10 | 5:92cdff7fb885 | 13 | ******************************************************************************/ |
phn10 | 5:92cdff7fb885 | 14 | #ifndef DISPLAY_H |
phn10 | 5:92cdff7fb885 | 15 | #define DISPLAY_H |
phn10 | 5:92cdff7fb885 | 16 | |
phn10 | 5:92cdff7fb885 | 17 | #include "mbed.h" |
phn10 | 8:d8bc78bda829 | 18 | #include "io_pins.h" |
phn10 | 5:92cdff7fb885 | 19 | |
phn10 | 8:d8bc78bda829 | 20 | extern SPI spi; |
phn10 | 8:d8bc78bda829 | 21 | extern int bcd[4]; |
phn10 | 11:6751b9406142 | 22 | extern Serial pc; |
phn10 | 11:6751b9406142 | 23 | extern DigitalOut SS; |
phn10 | 5:92cdff7fb885 | 24 | |
spm71 | 20:d23bcd97f2c5 | 25 | void initial_setup(struct spi_cfg spi_obj); |
spm71 | 10:ae0a262ba48d | 26 | void bin2bcd_array(int num, char bcd[]); |
phn10 | 11:6751b9406142 | 27 | void send_command_to_display(char bcd[]); |
spm71 | 23:3da1d39c1ae9 | 28 | void test_target_leds(); |
phn10 | 5:92cdff7fb885 | 29 | |
phn10 | 5:92cdff7fb885 | 30 | #endif /*DISPLAY_H */ |