Lysregulering / Mbed 2 deprecated TESTDIOPOT

Dependencies:   XBeeLib mbed

Fork of TESTSENDIO by Lysregulering

Revision:
0:8142893960b0
Child:
1:d752dab97a81
diff -r 000000000000 -r 8142893960b0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Feb 16 12:52:47 2018 +0000
@@ -0,0 +1,18 @@
+#include "XBeeLib.h"
+  
+using namespace XBeeLib;
+ 
+int main()
+{
+  XBeeZB xbee = XBeeZB(RADIO_TX, RADIO_RX, RADIO_RESET);
+     RadioStatus radioStatus;
+
+    
+ while(1){
+    RemoteXBeeZB remoteDevice = RemoteXBeeZB(0x0013A20041642F34);
+    radioStatus = xbee.set_pin_config(remoteDevice, XBeeZB::DIO4, DigitalOutHigh);
+    wait(0.01);
+    radioStatus = xbee.set_pin_config(remoteDevice, XBeeZB::DIO4, DigitalOutLow);
+    wait(0.01);
+}
+}
\ No newline at end of file