MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / get

Method get

libraries/SparseArray/SparseArray.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98float SparseArray::get(uint16_t x)
99{
100 int32_t pos = findPos(x);
101 if (pos > -1)
102 {
103 return _value[pos];
104 }
105 return 0;
106}
107
108
109void SparseArray::boundingSegment(uint16_t &minX, uint16_t &maxX)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36