![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
xDotBridge/src/nBitAnalogLadder.cpp
- Committer:
- mbriggs_vortex
- Date:
- 2017-11-29
- Revision:
- 100:0882cf295f8e
- Parent:
- 33:c7bb3fbc024a
File content as of revision 100:0882cf295f8e:
#include "nBitAnalogLadder.h" uint8_t convAnalogLadder (const float &analogV, const float valueTable[][2], uint8_t nVals) { uint8_t i; for (i = 0; i < nVals; i++) { if ((valueTable[i][TABLE_MIN_IDX] <= analogV) && (analogV <= valueTable[i][TABLE_MAX_IDX])) { break; } } return i; }