# Use WS2801 with PIN4 and Neo800KbpsMethod

**URL:** <https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103>\
**Category:** Questions\
**Created:** [October 20, 2020, 8:40am UTC](https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103 "2020-10-20T08:40:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorsten](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thorsten](https://wled.discourse.group/u/thorsten)\
**Post date:** [October 20, 2020, 8:40am UTC](https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103/1 "2020-10-20T08:40:35Z")

</div>

Hello,

I am trying to get one LED working with WLED.

My config:

> #define LEDPIN 4  
> #define DATAPIN 4  
> IR\_PIN -1  
> #define USE\_WS2801

But it does not work. This simple script here works fine:

any help is highly appreciated:

const uint16\_t PixelCount = 1;  
const uint8\_t PixelPin = 4;  
#define colorSaturation 255 // saturation of color constants  
#include \<NeoPixelBrightnessBus.h\>  
RgbColor red(255, 0, 0);  
RgbColor green(0, 255, 0);  
RgbColor blue(0, 0, 255);  
NeoPixelBrightnessBus\<NeoRgbFeature, Neo800KbpsMethod\> strip(PixelCount, PixelPin);  
void setup(void) {  
Serial.begin(115200);  
strip.Begin();  
strip.Show();  
}  
void loop(void) {  
strip.SetPixelColor(0, red);  
strip.Show();  
delay(2000);  
strip.SetPixelColor(0, green);  
strip.Show();  
delay(2000);  
}

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 20, 2020, 5:52pm UTC](https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103/2 "2020-10-20T17:52:23Z")

</div>

You have to use VScode with PlatformIO. In this case you can chage type of LED strip and pinout easy.

---

<div class="post-metadata">

**Author:** ![thorsten](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thorsten](https://wled.discourse.group/u/thorsten)\
**Post date:** [October 20, 2020, 6:40pm UTC](https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103/3 "2020-10-20T18:40:07Z")

</div>

so you mean the changes in the file “npbWrapper.h” inside Arduino IDE are not working, I have to use VScode with PlatformIO to make config changes?

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 20, 2020, 10:41pm UTC](https://wled.discourse.group/t/use-ws2801-with-pin4-and-neo800kbpsmethod/1103/4 "2020-10-20T22:41:16Z")

</div>

it might work or not but using PlatformIO is much easier. You have to config one file platformio.ini and everything should work just fine. At least it’s tested.  
[env:custom\_WS2801]  
board = d1\_mini  
platform = {common.platform\_latest} board\_build.ldscript = {common.ldscript\_4m1m}  
build\_flags = ${common.build\_flags\_esp8266} -D USE\_WS2801 -D CLKPIN=13 -D DATAPIN=4
