Kevin Anderson / DataCommClassVersion

Dependents:   ClassFRDM ClassLPC

Revision:
2:ba93026839a9
Parent:
1:9cfb17f74dcd
--- a/main.cpp	Thu Mar 19 11:54:05 2015 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-#include "mbed.h"
-#include "DataComm.h"
-
-DataComm test; //create data communication protocol variable
-char data[4] = "Hi!"; //test data
-int size = 3;
-DigitalOut myled(LED1); // red led on board
-
-int main()
-{
-    myled = 1; //turn off led
-    test.setClockOut(D8); //clock out pin
-    test.setSerialOut(D7); //data out pin
-    test.setClock(2000); //set 2 second clock
-    test.initiate_connection(); //send preamble
-    test.send_data(data, size); //send data
-    test.close_connection(); //send postamble
-    myled = 0; //turn on led to indicate completion of code
-}