teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

2019/03/20 11:27

投稿

shincra
shincra

スコア14

title CHANGED
File without changes
body CHANGED
File without changes

3

2019/03/20 11:27

投稿

shincra
shincra

スコア14

title CHANGED
File without changes
body CHANGED
@@ -17,11 +17,13 @@
17
17
 
18
18
  void loop() {
19
19
 
20
- }
20
+
21
21
  for(int i = 0 ; i < LED_COUNT ; i++ )
22
22
  {
23
23
  led.setPixelColor(i-1,led.Color(0,0,0));
24
24
  led.setPixelColor(i,led.Color(255,0,0));
25
25
  led.show();
26
26
  delay(40);
27
+ }
28
+
27
29
  }

2

2019/03/20 11:26

投稿

shincra
shincra

スコア14

title CHANGED
File without changes
body CHANGED
File without changes

1

2019/03/20 11:23

投稿

shincra
shincra

スコア14

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  ```//ライブラリインクルード
6
6
  #include <Adafruit_NeoPixel.h>
7
7
 
8
- #define LED_COUNT ( 30 )
8
+ #define LED_COUNT ( 60 )
9
9
  #define DIGITAL_PIN ( 6 )
10
10
 
11
11
  Adafruit_NeoPixel led = Adafruit_NeoPixel( LED_COUNT,DIGITAL_PIN , NEO_GRB + NEO_KHZ800);
@@ -17,14 +17,6 @@
17
17
 
18
18
  void loop() {
19
19
 
20
- ///色を設定
21
- //第一引数:何個目のLEDを光らせるか
22
- //第二引数:色を設定(RGB)
23
- led.setPixelColor( 1, led.Color(255,255,255));
24
-
25
- ///設定した情報をテープに送る!
26
- led.show();
27
-
28
20
  }
29
21
  for(int i = 0 ; i < LED_COUNT ; i++ )
30
22
  {