freedom board datacomm
Dependencies: DataCommClassVersion mbed
Revision 0:8fdce6f6ce99, committed 2015-03-23
- Comitter:
- askksa12543
- Date:
- Mon Mar 23 14:47:50 2015 +0000
- Commit message:
- 1st
Changed in this revision
diff -r 000000000000 -r 8fdce6f6ce99 DataCommClassVersion.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DataCommClassVersion.lib Mon Mar 23 14:47:50 2015 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/users/askksa12543/code/DataCommClassVersion/#ba93026839a9
diff -r 000000000000 -r 8fdce6f6ce99 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 23 14:47:50 2015 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "DataComm.h" + +DataComm test; +char data[4] = "Hi!"; +int i=1000; + +int main() +{ + //set up the output + test.setClockIn(D8); //clock out pin + test.setSerialIn(D7); //data out pin + test.setClock(i); //set clock timing + test.initiate_connection(); //send preamble + test.send_data(data, 3); +}
diff -r 000000000000 -r 8fdce6f6ce99 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 23 14:47:50 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0 \ No newline at end of file