aboutsummaryrefslogtreecommitdiff
path: root/examples/Blink3rdPartyLib/Toggle/TogglePin.h
blob: 5a7e32c2be02bde061b8b0873df7f285e1d7dc5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// This program is free software and is licensed under the same conditions as
// describe in https://github.com/sudar/Arduino-Makefile/blob/master/licence.txt

#ifndef TOGGLEPIN_H_
#define TOGGLEPIN_H_

class TogglePin
{
 public:
	TogglePin(int pinNumber, bool state);

	bool toggle();

 private:
	const int _pinNumber;
	bool _state;
};

#endif