WS2813B

イメージ 1
  マイコン内蔵RGB LED WS2813B (秋月電子通商

イメージ 2

イメージ 3




イメージ 4

イメージ 5


#include <Adafruit_NeoPixel.h>
#include <EasyNeoPixels.h>

#define MAX_VAL 64  // 0 to 255 for brightness
#define DELAY_TIME 50
#define DELAY_TIME2 20

unsigned int brite= 20;

void setup() {
  // put your setup code here, to run once:
  
  
  setupEasyNeoPixels(9, 4);              // (制御PinNo, LEDの数)
  easyNeoPixels.setBrightness(brite);    // LED明るさ

  writeEasyNeoPixel(0, HIGH);           // 点灯
  writeEasyNeoPixel(1, HIGH);           // 点灯
  writeEasyNeoPixel(3, HIGH);           // 点灯
  
  writeEasyNeoPixel(0, 255, 0, 0);      // Red
  writeEasyNeoPixel(1, 0, 255, 0);      // Green
  writeEasyNeoPixel(3, 0,   0, 255);    // Blue

}

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

}

※ インクルードしているライブラリは、
  Arduinoメニューバー → スケッチ → ライブラリをインクルード → ライブラリを管理 → "NeoPixel"で検索
  すると一覧が表示されるので、そこから選択!


===================================================================================
イメージ 6
KiCadのPcbnew 4.0.1で作成