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.
Dependents: ClassFRDM ClassLPC
main.cpp@0:60c4436f7667, 2015-03-19 (annotated)
- Committer:
- askksa12543
- Date:
- Thu Mar 19 02:36:11 2015 +0000
- Revision:
- 0:60c4436f7667
- Child:
- 1:9cfb17f74dcd
initial class version of data comm project.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| askksa12543 | 0:60c4436f7667 | 1 | #include "mbed.h" |
| askksa12543 | 0:60c4436f7667 | 2 | #include "C12832.h" |
| askksa12543 | 0:60c4436f7667 | 3 | #include "DataComm.h" |
| askksa12543 | 0:60c4436f7667 | 4 | |
| askksa12543 | 0:60c4436f7667 | 5 | DataComm test; |
| askksa12543 | 0:60c4436f7667 | 6 | char data[4] = "Hi!"; |
| askksa12543 | 0:60c4436f7667 | 7 | |
| askksa12543 | 0:60c4436f7667 | 8 | int main() |
| askksa12543 | 0:60c4436f7667 | 9 | { |
| askksa12543 | 0:60c4436f7667 | 10 | test.setClockOut(D8); |
| askksa12543 | 0:60c4436f7667 | 11 | test.setSerialOut(D7); |
| askksa12543 | 0:60c4436f7667 | 12 | test.setClock(2000); |
| askksa12543 | 0:60c4436f7667 | 13 | test.initiate_connection(); |
| askksa12543 | 0:60c4436f7667 | 14 | test.setDataSize(3); |
| askksa12543 | 0:60c4436f7667 | 15 | test.send_data(data); |
| askksa12543 | 0:60c4436f7667 | 16 | } |