Beispiel1

Dependencies:   NeoPixel mbed

Fork of Nucleo_neopixel_ovgu by FCLab@OvGU

Committer:
RitaF
Date:
Mon Dec 11 17:07:35 2017 +0000
Revision:
5:0993d55a871e
Parent:
4:1f676d6961e8
erstes Beispiel

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bcostm 0:028fac66239d 1 #include "mbed.h"
Hinz 4:1f676d6961e8 2 #include "neopixel.h"
Hinz 4:1f676d6961e8 3
Hinz 4:1f676d6961e8 4 NeoPixel npx(D6,8);
bcostm 1:e9d1c42a73ae 5
Hinz 4:1f676d6961e8 6 int main() {
Hinz 4:1f676d6961e8 7
RitaF 5:0993d55a871e 8 npx.setColor(0,0x550000);
RitaF 5:0993d55a871e 9 npx.setColor(1,0x005500);
RitaF 5:0993d55a871e 10 npx.setColor(2,0x000055);
RitaF 5:0993d55a871e 11 npx.setColor(3,0x555500);
RitaF 5:0993d55a871e 12 npx.setColor(4,0x005555);
RitaF 5:0993d55a871e 13 npx.setColor(5,0x550055);
Hinz 4:1f676d6961e8 14 npx.setColor(6,0xffffff);
Hinz 4:1f676d6961e8 15 npx.setColor(7,0x1f1f1f);
Hinz 4:1f676d6961e8 16 npx.show();
Hinz 4:1f676d6961e8 17
bcostm 0:028fac66239d 18 }