1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

(neopixelWrite)M5StampS3、RGB LEDで遊ぶ(スタックチャンフェスで入手)

Last updated at Posted at 2025-04-06

目的

RGB LEDを入手

結果

安定化

image_original (77).jpg

プログラム


void setup() {
  // put your setup code here, to run once:

  pinMode(13, OUTPUT);
  digitalWrite(13, LOW);
  for(int i=0;i<2;i++){ //安定待ち
    neopixelWrite(13, 10, 10, 10); //ダミー
    delay(500);
    neopixelWrite(13, 0, 0, 0); //ダミー
    delay(500);
  }//for
  for(int i=0;i<24;i++){ //オールクリア
    neopixelWrite(13, 0, 0, 0); //ダミー
  }//for
  delay(300);
  
  //                R  G  B
  neopixelWrite(13, 5, 0, 0);
  //digitalWrite(13, LOW);digitalWrite(13, LOW);
  
  //neopixelWrite(13, 0, 5, 0);
  //digitalWrite(13, LOW);digitalWrite(13, LOW);
  
  //neopixelWrite(13, 0, 0, 5);
  //digitalWrite(13, LOW);digitalWrite(13, LOW);
  
  //NOP();NOP();NOP();
  //delayMicroseconds(1);
  //delay(1);

}

void loop() {
  // put your main code here, to run repeatedly:

  delay(3); //ダミー

}

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?