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.
Fork of ELEC351 by
SPI.hpp
- Committer:
- thomasmorris
- Date:
- 2018-07-16
- Revision:
- 56:bc5345bc6650
- Parent:
- 53:71f59e195f06
File content as of revision 56:bc5345bc6650:
#ifndef SPI_HPP//Header Guards Prevents Multiple includes #define SPI_HPP #include "mbed.h" #include "LED_LOGGING.hpp" #include "SERIAL.hpp" #include "COLOURS.hpp" /* MOSI = Blue MISO = White SCLK = Yellow Slave Select = Green */ static SPI spi(PC_12,PC_11,PC_10); // mosi, miso, sclk static DigitalOut cs(PD_2); //Slave select void SPI_INIT(); void SPI_INTERFACE_SERIAL(); #endif