GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers display.h Source File

display.h

00001 /******************************************************************************
00002 * EECS 397
00003 *
00004 * Assignment Name: Lab 6: WaG
00005 * 
00006 * Authors: Sam Morrison and Phong Nguyen 
00007 * File name: display.h
00008 * Purpose: Contain function prototypes and consant variable
00009 * 
00010 * Created: 03/01/2018
00011 * Last Modified: 03/29/2018
00012 *
00013 ******************************************************************************/
00014 #ifndef DISPLAY_H
00015 #define DISPLAY_H
00016 
00017 #include "mbed.h"
00018 #include "io_pins.h"
00019 
00020 extern SPI spi;
00021 extern int bcd[4];
00022 extern Serial pc;
00023 extern DigitalOut SS;
00024 
00025 void initial_setup(struct spi_cfg spi_obj);
00026 void bin2bcd_array(int num, char bcd[]);
00027 void send_command_to_display(char bcd[]);
00028 void test_target_leds();
00029 
00030 #endif /*DISPLAY_H */