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
18
class
Led
{
19
20
private
:
21
uint8_t pin;
22
23
public
:
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
Led::toggle
void toggle()
Toggle the LED state.
Led::blink
void blink(int n)
Blink the LED a given number of times.
Led::begin
void begin()
Initialize the LED.
Led::Led
Led(uint8_t pin)
Construct a new Led object.
Led::set
void set(bool status)
Set the LED on or off.
src
Led.h
Generated by
1.16.1