Lab 6 code.

Dependencies:   mbed

Fork of WaG by GroupA

display.h

Committer:
spm71
Date:
2018-04-06
Revision:
56:048b30c9f2a1
Parent:
42:6cba679a4ee4

File content as of revision 56:048b30c9f2a1:

/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 6: WaG
* 
* Authors: Sam Morrison and Phong Nguyen 
* File name: display.h
* Purpose: Contain function prototypes and consant variable
* 
* Created: 03/01/2018
* Last Modified: 03/29/2018
*
******************************************************************************/
#ifndef DISPLAY_H
#define DISPLAY_H

#include "mbed.h"
#include "io_pins.h"

extern SPI spi;
extern int bcd[4];
extern Serial pc;
extern DigitalOut SS;

void initial_setup(struct spi_cfg spi_obj);
void bin2bcd_array(int num, char bcd[]);
void send_command_to_display(char bcd[]);
void test_target_leds();

#endif /*DISPLAY_H */