Arduino TKJHAT
Arduino library for Pico HAT extension board
Loading...
Searching...
No Matches
Led.h
1#ifndef TKJHAT_LED_H
2#define TKJHAT_LED_H
3
4#include <Arduino.h>
5
17
18class Led {
19
20private:
21 uint8_t pin;
22
23public:
24
29 Led(uint8_t pin);
30
34 void begin();
35
40 void toggle();
41
46 void set(bool status);
47
52 void blink(int n);
53};
54
58
59#endif
void toggle()
Toggle the LED state.
void blink(int n)
Blink the LED a given number of times.
void begin()
Initialize the LED.
Led(uint8_t pin)
Construct a new Led object.
void set(bool status)
Set the LED on or off.