WLED and WS2812B RGB LEDs Strip All In One
Posted xgqfrms
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WLED and WS2812B RGB LEDs Strip All In One相关的知识,希望对你有一定的参考价值。
WLED and WS2812B RGB LEDs Strip All In One
WLED App
WLED
Control WS2812B
and many more types of digital RGB LED
s with an ESP8266
or ESP32
over Wi-Fi
!
https://github.com/Aircoookie/WLED
Wi-Fi
https://en.wikipedia.org/wiki/Wi-Fi
Home Assistant
WLED
WLED is a fast and feature-rich implementation of an ESP8266/ESP32
webserver to control NeoPixel
(WS2812B, WS2811, SK6812, APA102, and similar) LED’s.
While Home Assistant supports WLED 0.8.4 and higher, the use of WLED 0.10 and newer is recommended to get the optimal experience.
WLED 是 ESP8266/ESP32
网络服务器的快速且功能丰富的实现,用于控制 NeoPixel
(WS2812B、WS2811、SK6812、APA102 等)LED。
虽然 Home Assistant
支持 WLED 0.8.4 及更高版本,但建议使用 WLED 0.10 及更新版本
以获得最佳体验。
https://www.home-assistant.io/integrations/wled/
PCB
嘉立创
SMT
钢网
刷锡膏
tools
PTC加热台
回流焊台、热风枪、电烙铁、熨斗
热胶枪
万用表
焊锡
Wled开源网址:https://github.com/Aircoookie/WLED
Wled安装网址:https://install.wled.me/
Prismatik网址:https://github.com/psieg/Lightpack
demos
https://www.bilibili.com/video/BV12B4y1S7Za/
(e585. Converting Between RGB and HSB Colors
This example demonstrates how to convert between a color value in RGB (three integer values in the range 0 to 255 representing red, green, and blue) and HSB (three floating point values in the range 0 to 1.0 representing hue, saturation, and brightness).
// Specify 3 RGB values
int red = 0x33;
int green = 0x66;
int blue = 0x99;
// Convert RGB to HSB
float[] hsb = Color.RGBtoHSB(red, green, blue, null);
float hue = hsb[0]; // .58333
float saturation = hsb[1]; // .66667
float brightness = hsb[2]; // .6
// Convert HSB to RGB value
int rgb = Color.HSBtoRGB(hue, saturation, brightness);
red = (rgb>>16)&0xFF;
green = (rgb>>8)&0xFF;
blue = rgb&0xFF;
Related Examples
以上是关于WLED and WS2812B RGB LEDs Strip All In One的主要内容,如果未能解决你的问题,请参考以下文章
谁知道ws2812的一些参数啊,听说阶新科技也有做这块?谁能解答一下
MicroPython实例之TPYBoard v102炫彩跑马灯WS2812B
e585. Converting Between RGB and HSB Colors
This example demonstrates how to convert between a color value in RGB (three integer values in the range 0 to 255 representing red, green, and blue) and HSB (three floating point values in the range 0 to 1.0 representing hue, saturation, and brightness).
// Specify 3 RGB values int red = 0x33; int green = 0x66; int blue = 0x99; // Convert RGB to HSB float[] hsb = Color.RGBtoHSB(red, green, blue, null); float hue = hsb[0]; // .58333 float saturation = hsb[1]; // .66667 float brightness = hsb[2]; // .6 // Convert HSB to RGB value int rgb = Color.HSBtoRGB(hue, saturation, brightness); red = (rgb>>16)&0xFF; green = (rgb>>8)&0xFF; blue = rgb&0xFF;
Related Examples |
以上是关于WLED and WS2812B RGB LEDs Strip All In One的主要内容,如果未能解决你的问题,请参考以下文章
谁知道ws2812的一些参数啊,听说阶新科技也有做这块?谁能解答一下
MicroPython实例之TPYBoard v102炫彩跑马灯WS2812B