13 #ifdef ARDUINO_AVR_DIGISPARK 14 uint32_t pulseInLong(uint8_t pin, uint8_t state, uint32_t timeout);
15 #endif // ARDUINO_AVR_DIGISPARK 19 static const uint16_t DefaultMaxRangeCm = 200;
20 static const uint8_t DefaultTimeoutMs = 15;
28 SonicRanger(
const uint8_t trigPin,
const uint8_t echoPin);
71 const uint8_t _trigPin;
72 const uint8_t _echoPin;
void setMaxRange(uint16_t cm)
SonicRanger(const uint8_t trigPin, const uint8_t echoPin)
void setTimeoutMs(uint16_t ms)