Adapt code from WS2801 to WS2812 RGB LED Module Breakout

Hello,

I would like make a project with an arduino.

In this project, we use a WS2801 rgb led module breakout => http://blogs.iad.zhdk.ch/color-light-hs … -rgb-leds/

But this module is replace by the WS2812 rgb led… and low cost .

For WS2801, I have 4-pin connection on my arduino :

5V → 5V

SDI → PIN2

CKI → PIN3

GND → GND

For WS2801, just 3 : https://cdn.sparkfun.com/assets/5/7/c/3 … 000001.png

5V → 5V

DI → PIN2

GND → GND

But my question is: What is differences for code? How adapt code?

Thanks for your helps.

I’m French, sorry for my english !

Valentin

https://learn.sparkfun.com/tutorials/ws … 1422207419