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.
Dependents: KL25Z_HSI2RGBW_PWM KL25Z_HSI2RGBW_PWM_local KL25Z_FFT_Demo FFT_BUENA ... more
Diff: hsi2rgbw_pwm.cpp
- Revision:
- 2:d164d60999c4
- Parent:
- 0:dd0e7a8a4572
- Child:
- 3:dda6914d713f
--- a/hsi2rgbw_pwm.cpp Mon Dec 23 20:31:20 2013 +0000 +++ b/hsi2rgbw_pwm.cpp Tue Dec 24 06:29:38 2013 +0000 @@ -1,3 +1,29 @@ +/************************************************************************************************************** + ***** ***** + ***** Name: hsi2rgbw.cpp ***** + ***** Date: 22/12/2013 ***** + ***** Auth: Frank Vannieuwkerke ***** + ***** Func: library for converting HSI color space values to RGBW ***** + ***** ***** + ***** Code ported from http://saikoled.com - Copyright 2013, Brian Neltner ***** + ***** http://blog.saikoled.com/post/44677718712/how-to-convert-from-hsi-to-rgb-white ***** + ***** http://blog.saikoled.com/post/43693602826/why-every-led-light-should-be-using-hsi-colorspace ***** + ***** https://github.com/saikoLED/MyKi/blob/master/myki_16_bit_random_fade/myki_16_bit_random_fade.ino ***** + ***** https://github.com/saikoLED/MyKi/blob/master/myki_16_bit_fade/myki_16_bit_fade.ino ***** + ***** ***** + ***** This program is free software: you can redistribute it and/or modify ***** + ***** it under the terms of the GNU General Public License as published by ***** + ***** the Free Software Foundation, version 3 of the License. ***** + ***** ***** + ***** This program is distributed in the hope that it will be useful, ***** + ***** but WITHOUT ANY WARRANTY; without even the implied warranty of ***** + ***** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ***** + ***** GNU General Public License for more details. ***** + ***** ***** + ***** A copy of the GNU General Public License can be found at ***** + ***** http://www.gnu.org/licenses/gpl.html ***** + **************************************************************************************************************/ + #include "hsi2rgbw_pwm.h" #define PI 3.14159265