Fridolin  1.2
DieBitschubser
LED.h
gehe zur Dokumentation dieser Datei
1 #pragma once
2 
3 #include "Arduino.h"
4 
5 
14  namespace STFU
15 {
20 class LED
21 {
22 public:
26  LED() = delete;
31  LED(int);
35  void on();
39  void off();
43  void switchState();
48  bool state() const;
49 private:
51  const int _pin;
52 };
53 
54 }
void switchState()
Schaltet die LED Lampe an, falls sie aus war oder schaltet die LED Lampe aus falls sie an war.
Definition: LED.cpp:22
bool state() const
Abfrage des Status der LED Lampe.
Definition: LED.cpp:32
Klasse fuer die LED.
Definition: LED.h:20
void off()
Schaltet die LED Lampe aus.
Definition: LED.cpp:17
void on()
Schaltet die LED Lampe an.
Definition: LED.cpp:12
Super Tolle Fridolin Utilities Alle Klassen aus dieser Bibliothek haben den Präfix: STFU.
Definition: Button.cpp:3
LED()=delete
Der Defaultkonstruktor ist verboten.