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
Diff: display.h
- Revision:
- 8:d8bc78bda829
- Parent:
- 5:92cdff7fb885
- Child:
- 10:ae0a262ba48d
--- a/display.h Thu Feb 22 02:06:07 2018 +0000 +++ b/display.h Thu Feb 22 03:10:01 2018 +0000 @@ -15,15 +15,14 @@ #define DISPLAY_H #include "mbed.h" +#include "io_pins.h" -#define CHIP_SELECT PC_7 -#define MOSI PA_7 -#define MISO PA_6 -#define SCLK PA_5 +extern SPI spi; +extern int bcd[4]; +void initial_setup(DigitalOut SS, int data_length, int spi_frequency); void mod_bcd(int num); int convert(int dec); char to_command(char input, int place); - #endif /*DISPLAY_H */ \ No newline at end of file