Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PixelArray mbed
Fork of mbed_ws2812b by
Revision 1:d9c6619240a3, committed 2016-11-01
- Comitter:
- AamirNiaz
- Date:
- Tue Nov 01 04:36:49 2016 +0000
- Parent:
- 0:afb6ebe20c1f
- Commit message:
- ws2813b sample firmware
Changed in this revision
| PixelArray.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PixelArray.lib Sat Dec 13 06:58:47 2014 +0000 +++ b/PixelArray.lib Tue Nov 01 04:36:49 2016 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/JacobBramley/code/PixelArray/#47802e75974e +https://developer.mbed.org/teams/MZJ/code/PixelArray/#f9190f4a19cc
--- a/main.cpp Sat Dec 13 06:58:47 2014 +0000
+++ b/main.cpp Tue Nov 01 04:36:49 2016 +0000
@@ -27,6 +27,7 @@
#define NLED (4)
#define ONE_COLOR
+
void generate(neopixel::Pixel * out, uint32_t index, uintptr_t val) {
#ifdef ONE_COLOR
uint32_t pat1 = val / 256;
@@ -50,9 +51,13 @@
int main() {
- DigitalIn(D3, PullDown);
- neopixel::PixelArray array(D3);
-
+
+
+
+ DigitalIn(P1_22, PullDown);
+ neopixel::PixelArray array(P1_22);
+
+
uint32_t val = 0;
while (1) {
if ((++val) >= MAX_INDEX) {
@@ -60,5 +65,6 @@
}
array.update(generate, NLED, val);
wait_ms(10);
+
}
}
