GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

display.h

Committer:
spm71
Date:
2018-03-02
Revision:
18:0e281922212c
Parent:
16:dfa9eb1a808d
Child:
20:d23bcd97f2c5

File content as of revision 18:0e281922212c:

/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 5: 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/02/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(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);
void send_command_to_display(char bcd[]);

#endif /*DISPLAY_H */