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.
Fork of WS2811 by
Revision 4:46b52a6a943b, committed 2016-11-23
- Comitter:
- nimaaghli
- Date:
- Wed Nov 23 19:41:34 2016 +0000
- Parent:
- 3:2fbb2f0e79fb
- Commit message:
- first commit
Changed in this revision
--- a/WS2811.cpp Sat Jun 25 18:53:38 2016 +0000
+++ b/WS2811.cpp Wed Nov 23 19:41:34 2016 +0000
@@ -9,7 +9,7 @@
uint8_t ledmatrix[LED_MAX][3];
-DigitalOut myled(P0_22);
+DigitalOut myled(PB_5);
void writeled(int pos, uint8_t g, uint8_t r, uint8_t b){ // define the register
ledmatrix[pos][0] = g; // green register
--- a/WS2811.h Sat Jun 25 18:53:38 2016 +0000 +++ b/WS2811.h Wed Nov 23 19:41:34 2016 +0000 @@ -12,14 +12,15 @@ * * bit: 255 brightest * bit: 0 darkest -*/#include "mbed.h" +*/ +#include "mbed.h" -#define HIGH_SIGNAL 4 // Logic 1 +#define HIGH_SIGNAL 9 // Logic 1 #define LOW_SIGNAL 1 // Logic 0 -#define DELAY 0.0000000000001 - +#define DELAY 0.00000000001 + //////////////////// -#define LED_MAX 60// // switch the value for your number of pixels +#define LED_MAX 1// // switch the value for your number of pixels //////////////////// #define middle 29// // define the mid of the pixels: to make it work middle-1 ///////////////////
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Nov 23 19:41:34 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf \ No newline at end of file
