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.
Diff: main.cpp
- Revision:
- 0:48db693b0f9e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jan 25 18:29:02 2017 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "ChainableLED.h" + +// ChainableLED(clk, data, number_of_leds) +ChainableLED color_led(D0, D1, 1); + +int main() { + uint8_t value = 0; + + while(1) { + value++; + // ChainableLED.setColorRGB(index_of_led, red, green, blue) + color_led.setColorRGB(0, value, 255 - value, value + 80); + wait_ms(10); + } +} \ No newline at end of file