mirror of
https://gitlab.com/Luci_/arduino-photometrics.git
synced 2026-04-03 11:35:37 +02:00
19 lines
221 B
C++
Executable file
19 lines
221 B
C++
Executable file
#ifndef LED_H
|
|
#define LED_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
class Led{
|
|
public:
|
|
Led(uint8_t pin);
|
|
void setup();
|
|
void turnOn();
|
|
void turnOff();
|
|
void toggle();
|
|
|
|
private:
|
|
uint8_t pin;
|
|
bool state;
|
|
};
|
|
|
|
#endif |