GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Committer:
phn10
Date:
Thu Feb 22 03:10:01 2018 +0000
Revision:
8:d8bc78bda829
Parent:
5:92cdff7fb885
Child:
10:ae0a262ba48d
write function initial_setup() which set LED display to normal operation, spi frequency, and set all LED display numbers to 0.

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 *
phn10 5:92cdff7fb885 4 * Assignment Name: Lab 4: display_test2
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 *
phn10 5:92cdff7fb885 10 * Created: 02/21/2018
phn10 5:92cdff7fb885 11 * Last Modified: 02/21/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 5:92cdff7fb885 22
phn10 8:d8bc78bda829 23 void initial_setup(DigitalOut SS, int data_length, int spi_frequency);
phn10 5:92cdff7fb885 24 void mod_bcd(int num);
phn10 5:92cdff7fb885 25 int convert(int dec);
phn10 5:92cdff7fb885 26 char to_command(char input, int place);
phn10 5:92cdff7fb885 27
phn10 5:92cdff7fb885 28 #endif /*DISPLAY_H */