just load the code, hit reset, and turn on the rc controller while holding the button

Dependencies:   mbed

Revision:
0:35253c4bb774
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Nov 28 20:08:13 2018 +0000
@@ -0,0 +1,32 @@
+/*
+  TESTS/binding/int_dsmx_22ms/main.cpp
+  Spektrum binding test, internal DSMX 22ms
+  D Evangelista, 2018
+  Test passed on 13 Nov 2018
+  //official sailbot bind program
+*/
+
+#include "mbed.h"
+#include "rtos.h"
+#include "Spektrum.h"
+#include "unity.h"
+
+Serial pc(USBTX, USBRX); 
+BindPlug bind_Plug(p13, p14, SPEKTRUM_INT_DSMX_22MS);
+char c;
+
+
+
+int main(){
+  
+  pc.printf("Spektrum library version ");
+  pc.printf(SPEKTRUM_VERSION); 
+  pc.printf("\r\nSpektrum binding test, internal DSMX 22ms\r\n");
+  pc.printf("Be sure to connect orange to p13, gray to p14, blk to gnd\r\n");
+  pc.printf("Should see blinking light, transmitter should attempt bind\r\n");
+  pc.printf("Was binding successful (y/n)? ");
+  pc.scanf(" %c",&c);
+
+  TEST_ASSERT_EQUAL_MESSAGE('y',c,"Binding test failed.\r\n");
+
+} // main() for TESTS/binding/int_dsmx_22ms
\ No newline at end of file