質問編集履歴
1
ソースコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,10 +17,38 @@
|
|
17
17
|
|
18
18
|
### 該当のソースコード
|
19
19
|
|
20
|
-
|
20
|
+
#include<FastLED.h>
|
21
|
-
|
21
|
+
#define NUM_LEDS 79
|
22
|
-
|
22
|
+
#define DATA_PIN 10
|
23
|
+
int COLORDATA[10][4];
|
24
|
+
int colorStatus[81];
|
25
|
+
CRGB leds[NUM_LEDS];
|
23
26
|
|
27
|
+
void setup() {
|
28
|
+
// put your setup code here, to run once:
|
29
|
+
FastLED.addLeds<WS2812B, 13, RGB>(leds, NUM_LEDS);
|
30
|
+
FastLED.setBrightness(64);
|
31
|
+
Serial.begin(9600);
|
32
|
+
|
33
|
+
leds[0].setRGB(255,255,255);
|
34
|
+
Serial.print("13を点灯");
|
35
|
+
|
36
|
+
FastLED.show();
|
37
|
+
Serial.print("1000");
|
38
|
+
delay(1000);
|
39
|
+
|
40
|
+
FastLED.addLeds<WS2812B, 10, RGB>(leds, NUM_LEDS);
|
41
|
+
|
42
|
+
leds[0].setRGB(255,0,0);
|
43
|
+
Serial.print("10を点灯");
|
44
|
+
|
45
|
+
FastLED.show();
|
46
|
+
}
|
47
|
+
|
48
|
+
void loop() {
|
49
|
+
// put your main code here, to run repeatedly:
|
50
|
+
|
51
|
+
}
|
24
52
|
### 試したこと・調べたこと
|
25
53
|
- [x] teratailやGoogle等で検索した
|
26
54
|
- [x] ソースコードを自分なりに変更した
|