FastLED 3.9.7
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
9void setup() {
10 delay(1000);
11 Serial.begin(9600);
12}
13
14void 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}
central include file for FastLED, defines the CFastLED class/object