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_Group_T by
SPI.hpp
00001 #ifndef SPI_HPP//Header Guards Prevents Multiple includes 00002 #define SPI_HPP 00003 00004 #include "mbed.h" 00005 #include "LED_LOGGING.hpp" 00006 #include "SERIAL.hpp" 00007 #include "COLOURS.hpp" 00008 00009 /* 00010 MOSI = Blue 00011 MISO = White 00012 SCLK = Yellow 00013 Slave Select = Green 00014 00015 */ 00016 00017 static SPI spi(PC_12,PC_11,PC_10); // mosi, miso, sclk 00018 static DigitalOut cs(PD_2); //Slave select 00019 void SPI_INIT(); 00020 void SPI_INTERFACE_SERIAL(); 00021 00022 #endif
Generated on Tue Jul 12 2022 22:52:51 by
