Руслан Бредун / Mbed 2 deprecated Santec

Dependencies:   mbed Watchdog

E18_D80NK/E18_D80NK.h

Committer:
ruslanbredun
Date:
2021-11-02
Revision:
1:2c9f4d24d521
Parent:
0:858059db6068

File content as of revision 1:2c9f4d24d521:

#pragma once

#include "mbed.h"

class E18_D80NK{
private:
	DigitalIn input;

public:
	/** Create an object of a library to work with the E18-D80NK
	 * @param[PinName] inputPin - assigned pin to communicate with the sensor
	 */
	E18_D80NK(PinName);

	/** Check if there is an obstacle in front of the sensor
	 * @return - if there's an obstacle return 0, otherwise - 1
	 */
	int checkObstacle(void);
};