GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

display.h

Committer:
spm71
Date:
2018-02-22
Revision:
10:ae0a262ba48d
Parent:
8:d8bc78bda829
Child:
11:6751b9406142

File content as of revision 10:ae0a262ba48d:

/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 4: display_test2
* 
* Authors: Sam Morrison and Phong Nguyen 
* File name: display.h
* Purpose: Contain function prototypes and consant variable
* 
* Created: 02/21/2018
* Last Modified: 02/21/2018
*
******************************************************************************/
#ifndef DISPLAY_H
#define DISPLAY_H

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

extern SPI spi;
extern int bcd[4];

void initial_setup(DigitalOut SS, int data_length, int spi_frequency);
void bin2bcd_array(int num, char bcd[]);
int convert(int dec);
char to_command(char input, int place);

#endif /*DISPLAY_H */