-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfraredSensor.h
31 lines (25 loc) · 1.12 KB
/
infraredSensor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/******************************************************************************
* *
* Program : FileLogger *
* *
* FILE : infraredSensor.h *
* *
* Date : 28 / 05 / 2021 *
* *
* Programmers : Team Software "TORQ" *
* *
******************************************************************************/
#pragma once
#include <Arduino.h>
class InfraredSensor
{
public:
InfraredSensor(byte m_pin, byte m_led_pin);
void display_led();
int get_state();
int read_pin();
void init();
byte pin;
byte led_pin;
int state;
};