Map temperature to color
Dependencies: Chainable_RGB_LED mbed
Fork of Seeed_Grove_Chainable_RGB_LED_Example by
main.cpp
- Committer:
- yihui
- Date:
- 2014-08-22
- Revision:
- 0:74eac9e7f286
- Child:
- 1:b18ce9f622ff
File content as of revision 0:74eac9e7f286:
#include "mbed.h" #include "ChainableLED.h" // ChainableLED(clk, data, number_of_leds) ChainableLED color_led(P1_14, P1_13, 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); } }