Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Lab_6_WaG by
display.h
- Committer:
- phn10
- Date:
- 2018-02-23
- Revision:
- 11:6751b9406142
- Parent:
- 10:ae0a262ba48d
- Child:
- 16:dfa9eb1a808d
File content as of revision 11:6751b9406142:
/****************************************************************************** * 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]; 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 */