GNU General Public License v3.0

项目介绍

dmadison/Adalight-FastLED 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 GNU General Public License v3.0 许可证,目前获得 395 个 Star、68 次 Fork。

仓库全名
dmadison/Adalight-FastLED
开源许可证
GNU General Public License v3.0
Star 数
395
Fork 数
68

README 摘要

Adalight-FastLED Synopsis This project modifies the Adalight protocol to use FastLED (fastled.io). This expands Adalight to, in theory, work with any supported FastLED strip including WS2812B (aka Adafruit NeoPixels). In addition to ambilight setups, the protocol can be used to stream any color data over serial from a computer to supported LED strips. For this sketch to work, you'll need to have a copy of the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Adalight-FastLED 用什么语言开发?

主要使用 C++ 编写,采用 GNU General Public License v3.0 许可证,目前有 395 个 Star。

Adalight-FastLED 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Adalight-FastLED 的源码?

可以直接克隆仓库:git clone https://github.com/dmadison/Adalight-FastLED.git,默认分支为 master;安装与运行步骤见仓库 README。

Adalight-FastLED 最近还在维护吗?

仓库最近一次更新为 7月11日,当前没有未关闭的 Issue;Star 数为 395,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Adalight with FastLED support

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
551
价值分
259
活跃状态
活跃

语言占比

C++

Release

README

Adalight-FastLED

Build Status

Adalight-Rainbow

Synopsis

This project modifies the Adalight protocol to use FastLED (fastled.io). This expands Adalight to, in theory, work with any supported FastLED strip including WS2812B (aka Adafruit NeoPixels).

In addition to ambilight setups, the protocol can be used to stream any color data over serial from a computer to supported LED strips.

For this sketch to work, you’ll need to have a copy of the FastLED library. You can download FastLED from GitHub or through the libraries manager of the Arduino IDE. This program was writen using FastLED 3 - note that earlier versions of FastLED are untested and may not work properly.

For more information on my own ambilight setup, see the project page on PartsNotIncluded.com.

Basic Setup

Open the LEDstream_FastLED file in the Arduino IDE and customize the settings at the top for your setup. You will need to change:

  • Number of LEDs
  • LED data pin
  • LED type

If you are using a 4-wire LED chipset like APA102 or SK9822, you will need to uncomment the PIN_CLOCK line and set that as well.

Upload to your Arduino and use a corresponding PC application to stream color data. You can get the Processing files from the main Adalight repository, though I would recommend using Patrick Siegler’s fork of Lightpacks’s Prismatik, which you can find here.

Additional Settings

There are additional settings to allow for adjusting:

  • Max brightness
  • LED color order
  • Serial speed
  • Serial timeout length

There are also optional settings to clear the LEDs on reset or flush the incoming serial buffer after every latch. This latter option is enabled by default to help with flickering when using WS2812B LEDs.

Debug Settings

The code includes two debugging options:

  • DEBUG_LED
  • DEBUG_FPS

DEBUG_LED will turn on the Arduino’s built-in LED on a successful header match, and off when the LEDs latch. If your LEDs aren’t working, this will help confirm that the Arduino is receiving properly formatted serial data.

DEBUG_FPS, similarly, will toggle a given pin when the LEDs latch. This is useful for measuring framerate with external hardware, like a logic analyzer.

To enable either of these settings, uncomment their respective #define lines.

Issues and LED-types

I’ve only tested the code with the WS2812B strips I have on hand, but so far it performs flawlessly. If you find an issue with the code or can confirm that it works with another chipset, please let me know!

Credits and Contributions

Thanks to Adafruit for the initial code and for developing the Adalight protocol. The base for the original FastLED modifications is this gist by James Bruce. Thanks James!

Pull requests to improve this software are always welcome!

License

Adalight is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Adalight 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Adalight. If not, see http://www.gnu.org/licenses/.

评论

暂无评论