Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Ultrasonic Class Reference

Public Member Functions

void begin (uint16_t trigPin, uint8_t echoPin)
 
uint32_t ping ()
 
uint16_t us2cm (unsigned long microseconds)
 
uint16_t us2inch (unsigned long microseconds)
 
uint16_t rangeCM ()
 
uint16_t rangeInch ()
 
uint16_t temp (uint16_t baseDist, uint16_t baseTemp, uint16_t samples)