MEM / Mbed 2 deprecated ES_3_P1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 SPI ser_port(D11, D12, D13);
00004 char switch_word;
00005 int main() {
00006     ser_port.format(8,0);
00007     ser_port.frequency(1000000);
00008     while(1){
00009         switch_word=0xA1;
00010         ser_port.write(switch_word);
00011         wait_us(100);
00012         }
00013     
00014 }