GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Committer:
spm71
Date:
Fri Mar 02 22:18:47 2018 +0000
Revision:
18:0e281922212c
Parent:
16:dfa9eb1a808d
Child:
20:d23bcd97f2c5
More implementation on SPI and started stepper files.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
phn10 5:92cdff7fb885 1 /******************************************************************************
phn10 5:92cdff7fb885 2 * EECS 397
phn10 5:92cdff7fb885 3 *
spm71 18:0e281922212c 4 * Assignment Name: Lab 5: 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 18:0e281922212c 11 * Last Modified: 03/02/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
phn10 8:d8bc78bda829 25 void initial_setup(DigitalOut SS, int data_length, int spi_frequency);
spm71 10:ae0a262ba48d 26 void bin2bcd_array(int num, char bcd[]);
phn10 5:92cdff7fb885 27 int convert(int dec);
phn10 5:92cdff7fb885 28 char to_command(char input, int place);
phn10 11:6751b9406142 29 void send_command_to_display(char bcd[]);
phn10 5:92cdff7fb885 30
phn10 5:92cdff7fb885 31 #endif /*DISPLAY_H */