FastLED
3.9.15
Loading...
Searching...
No Matches
PinMode.ino
Go to the documentation of this file.
1
4
5
#include <
FastLED.h
>
6
7
#define PIN 1
8
9
void
setup
() {
10
delay(1000);
11
Serial.begin(9600);
12
}
13
14
void
loop
() {
15
pinMode(
PIN
, OUTPUT);
16
digitalWrite(
PIN
, HIGH);
17
delay(100);
18
digitalWrite(
PIN
, LOW);
19
pinMode(
PIN
, INPUT);
20
bool
on = digitalRead(
PIN
);
21
Serial.print(
"Pin: "
);
22
Serial.print(
PIN
);
23
Serial.print(
" is "
);
24
Serial.println(on ?
"HIGH"
:
"LOW"
);
25
delay(1000);
26
}
FastLED.h
central include file for FastLED, defines the CFastLED class/object
setup
void setup()
Definition
PinMode.ino:9
PIN
#define PIN
Definition
PinMode.ino:7
loop
void loop()
Definition
PinMode.ino:14
examples
PinMode
PinMode.ino
Generated on Fri Apr 18 2025 03:39:31 for FastLED by
1.13.2