Beispiel 2

Dependencies:   NeoPixel mbed

Fork of Nucleo_neopixel_ovgu1 by Rita Freudenberg

main.cpp

Committer:
RitaF
Date:
2017-12-11
Revision:
5:0993d55a871e
Parent:
4:1f676d6961e8
Child:
6:67eded37186e

File content as of revision 5:0993d55a871e:

#include "mbed.h"
#include "neopixel.h"

NeoPixel npx(D6,8);

int main() {
  
    npx.setColor(0,0x550000);    
    npx.setColor(1,0x005500);    
    npx.setColor(2,0x000055);    
    npx.setColor(3,0x555500);    
    npx.setColor(4,0x005555);    
    npx.setColor(5,0x550055);    
    npx.setColor(6,0xffffff);    
    npx.setColor(7,0x1f1f1f);
    npx.show();    
        
}