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:
6:5f31ddc17239
Parent:
2:700dc65ca3b1
--- a/Type/IOSamples.cpp	Thu Nov 05 23:03:42 2015 +0000
+++ b/Type/IOSamples.cpp	Sat Nov 14 16:42:36 2015 +0000
@@ -1,35 +1,35 @@
 #include "IOSamples.h"
 
-map<Pin *, int> * IOSamples::getAnalogs()
+map<Pin *, unsigned int> * IOSamples::getAnalogs()
 {
     return &analog;
 }
 
-int IOSamples::getAnalog(Pin * pin)
+unsigned int IOSamples::getAnalog(Pin * pin)
 {
     if (analog.count(pin))
         return analog[pin];
-    else return -1;
+    else return 0xFFFF;
 }
 
-map<Pin *, int> * IOSamples::getDigitals()
+map<Pin *, unsigned char> * IOSamples::getDigitals()
 {
     return &digital;
 }
 
-int IOSamples::getDigital(Pin * pin)
+unsigned char IOSamples::getDigital(Pin * pin)
 {
     if (digital.count(pin))
         return digital[pin];
     else return 2;
 }
 
-int IOSamples::getSupplyVoltage()
+unsigned int IOSamples::getSupplyVoltage()
 {
     return SUPPLY_VOLTAGE;
 }
 
-void IOSamples::setSupplyVoltage(int voltage)
+void IOSamples::setSupplyVoltage(unsigned int voltage)
 {
     SUPPLY_VOLTAGE =  voltage;
 }