Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
E18_D80NK/E18_D80NK.h@1:2c9f4d24d521, 2021-11-02 (annotated)
- Committer:
- ruslanbredun
- Date:
- Tue Nov 02 11:31:02 2021 +0000
- Revision:
- 1:2c9f4d24d521
- Parent:
- 0:858059db6068
Clear lib;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruslanbredun | 0:858059db6068 | 1 | #pragma once |
ruslanbredun | 0:858059db6068 | 2 | |
ruslanbredun | 0:858059db6068 | 3 | #include "mbed.h" |
ruslanbredun | 0:858059db6068 | 4 | |
ruslanbredun | 0:858059db6068 | 5 | class E18_D80NK{ |
ruslanbredun | 0:858059db6068 | 6 | private: |
ruslanbredun | 0:858059db6068 | 7 | DigitalIn input; |
ruslanbredun | 0:858059db6068 | 8 | |
ruslanbredun | 0:858059db6068 | 9 | public: |
ruslanbredun | 0:858059db6068 | 10 | /** Create an object of a library to work with the E18-D80NK |
ruslanbredun | 0:858059db6068 | 11 | * @param[PinName] inputPin - assigned pin to communicate with the sensor |
ruslanbredun | 0:858059db6068 | 12 | */ |
ruslanbredun | 0:858059db6068 | 13 | E18_D80NK(PinName); |
ruslanbredun | 0:858059db6068 | 14 | |
ruslanbredun | 0:858059db6068 | 15 | /** Check if there is an obstacle in front of the sensor |
ruslanbredun | 0:858059db6068 | 16 | * @return - if there's an obstacle return 0, otherwise - 1 |
ruslanbredun | 0:858059db6068 | 17 | */ |
ruslanbredun | 0:858059db6068 | 18 | int checkObstacle(void); |
ruslanbredun | 0:858059db6068 | 19 | }; |