1#ifndef GP2Y0A21_Sensor_h
2#define GP2Y0A21_Sensor_h
13 uint8_t ir_sensor_pin;
29 bool begin(uint8_t pin_num, uint8_t mode = INPUT_PULLDOWN);
Class for Pololu's Sharp GP2Y0A21YK0F analog distance sensor.
int16_t readMM()
Read the distance from the Sharp distance sensor in millimeters.
bool begin(uint8_t pin_num, uint8_t mode=INPUT_PULLDOWN)
Initialize the distance sensor class.
float readIN()
Read the distance from the Sharp distance sensor in inches.
uint16_t read()
Read the value from distance sensor.