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
main.cpp
- Committer:
- Mattinico
- Date:
- 2016-10-17
- Revision:
- 0:cafd2d5710f7
File content as of revision 0:cafd2d5710f7:
#include "mbed.h"
SPI ser_port(D11, D12, D13);
char switch_word;
int main() {
ser_port.format(8,0);
ser_port.frequency(1000000);
while(1){
switch_word=0xA1;
ser_port.write(switch_word);
wait_us(100);
}
}