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.
Type/IOSamples.cpp
- Committer:
- yangcq88517
- Date:
- 2015-10-22
- Revision:
- 2:700dc65ca3b1
- Parent:
- 0:837e6c48e90d
- Child:
- 6:5f31ddc17239
File content as of revision 2:700dc65ca3b1:
#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; } void IOSamples::clear() { analog.clear(); digital.clear(); }