XBee and XBee-PRO ZigBee RF modules provide cost-effective wireless connectivity to electronic devices. They are interoperable with other ZigBee PRO feature set devices, including devices from other vendors.

Dependencies:   BufferedArray

Dependents:   MBEDminiproject

Revision:
0:837e6c48e90d
Child:
2:700dc65ca3b1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Type/IOSamples.cpp	Thu Oct 22 12:28:26 2015 +0000
@@ -0,0 +1,35 @@
+#include "IOSamples.h"
+
+map<Pin, int> * IOSamples::getAnalogs()
+{
+    return &analog;
+}
+
+int IOSamples::getAnalog(Pin * pin)
+{
+    if (analog.count(*pin))
+        return analog[*pin];
+    else return -1;
+}
+
+map<Pin, int> * IOSamples::getDigitals()
+{
+    return &digital;
+}
+
+int IOSamples::getDigital(Pin * pin)
+{
+    if (digital.count(*pin))
+        return digital[*pin];
+    else return 2;
+}
+
+int IOSamples::getSupplyVoltage()
+{
+    return SUPPLY_VOLTAGE;
+}
+
+void IOSamples::setSupplyVoltage(int voltage)
+{
+    SUPPLY_VOLTAGE =  voltage;
+}
\ No newline at end of file