[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/FastLED/public)
[![arduino-library-badge](https://www.ardu-badge.com/badge/FastLED.svg)](https://www.ardu-badge.com/FastLED)
IMPORTANT NOTE: For AVR based systems, avr-gcc 4.8.x is supported and tested. This means Arduino 1.6.5 and later.
FastLED 3.2
===========
This is a library for easily & efficiently controlling a wide variety of LED chipsets, like the ones
sold by adafruit (Neopixel, DotStar, LPD8806), Sparkfun (WS2801), and aliexpress. In addition to writing to the
leds, this library also includes a number of functions for high-performing 8bit math for manipulating
your RGB values, as well as low level classes for abstracting out access to pins and SPI hardware, while
still keeping things as fast as possible. Tested with Arduino up to 1.6.5 from arduino.cc.
Quick note for people installing from GitHub repo zips, rename the folder FastLED before copying it to your Arduino/libraries folder. Github likes putting -branchname into the name of the folder, which unfortunately, makes Arduino cranky!
We have multiple goals with this library:
* Quick start for new developers - hook up your leds and go, no need to think about specifics of the led chipsets being used
* Zero pain switching LED chipsets - you get some new leds that the library supports, just change the definition of LEDs you're using, et. voila! Your code is running with the new leds.
* High performance - with features like zero cost global brightness scaling, high performance 8-bit math for RGB manipulation, and some of the fastest bit-bang'd SPI support around, FastLED wants to keep as many CPU cycles available for your led patterns as possible
## Getting help
If you need help with using the library, please consider going to the google+ community first, which is at http://fastled.io/+ - there are hundreds of people in that group and many times you will get a quicker answer to your question there, as you will be likely to run into other people who have had the same issue. If you run into bugs with the library (compilation failures, the library doing the wrong thing), or if you'd like to request that we support a particular platform or LED chipset, then please open an issue at http://fastled.io/issues and we will try to figure out what is going wrong.
## Simple example
How quickly can you get up and running with the library? Here's a simple blink program:
#include "FastLED.h"
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];
void setup() { FastLED.addLeds<NEOPIXEL, 6>(leds, NUM_LEDS); }
void loop() {
leds[0] = CRGB::White; FastLED.show(); delay(30);
leds[0] = CRGB::Black; FastLED.show(); delay(30);
}
## Supported LED chipsets
Here's a list of all the LED chipsets are supported. More details on the led chipsets are included *TODO: Link to wiki page*
* Adafruit's DotStars - AKA the APA102
* Adafruit's Neopixel - aka the WS2812B (also WS2811/WS2812/WS2813, also supported in lo-speed mode) - a 3 wire addressable led chipset
* TM1809/4 - 3 wire chipset, cheaply available on aliexpress.com
* TM1803 - 3 wire chipset, sold by radio shack
* UCS1903 - another 3 wire led chipset, cheap
* GW6205 - another 3 wire led chipset
* LPD8806 - SPI based chpiset, very high speed
* WS2801 - SPI based chipset, cheap and widely available
* SM16716 - SPI based chipset
* APA102 - SPI based chipset
* P9813 - aka Cool Neon's Total Control Lighting
* DMX - send rgb data out over DMX using arduino DMX libraries
* SmartMatrix panels - needs the SmartMatrix library - https://github.com/pixelmatix/SmartMatrix
* LPD6803 - SPI based chpiset, chip CMODE pin must be set to 1 (inside oscillator mode)
HL1606, and "595"-style shift registers are no longer supported by the library. The older Version 1 of the library ("FastSPI_LED") has support for these, but is missing many of the advanced features of current versions and is no longer being maintained.
## Supported platforms
Right now the library is supported on a variety of arduino compatable platforms. If it's ARM or AVR and uses the arduino software (or a modified version of it to build) then it is likely supported. Note that we have a long list of upcoming platforms to support, so if you don't see what you're looking for here, ask, it may be on the roadmap (or may already be supported). N.B. at the moment we are only supporting the stock compilers that ship with the arduino software. Support for upgraded compilers, as well as using AVR studio and skipping the arduino entirely, should be coming in a near future release.
* Arduino & compatibles - straight up arduino devices, uno, duo, leonardo, mega, nano, etc...
* Arduino Yún
* Adafruit Trinket & Gemma - Trinket Pro may be supported, but haven't tested to confirm yet
* Teensy 2, Teensy++ 2, Teensy 3.0, Teensy 3.1/3.2, Teensy LC - arduino compataible from pjrc.com with some extra goodies (note the teensy 3, 3.1, and LC are ARM, not AVR!)
* Arduino Due and the digistump DigiX
* RFDuino
* SparkCore
* Arduino Zero
* ESP8266 using the arduino board definitions from http://arduino.esp8266.com/stable/package_esp8266com_index.json - please be sure to also read https://github.com/FastLED/FastLED/wiki/ESP8266-notes for information specific to the 8266.
* The wino board - http://wino-board.com
What types of platforms are we thinking about supporting in the future? Here's a short list: ChipKit32, Maple, Beagleboard
## What about that name?
Wait, what happend to FastSPI_LED and FastSPI_LED2? The library was initially named FastSPI_LED because it was focused on very fast and efficient SPI access. However, since then, the library has expanded to support a number of LED chipsets that don't use SPI, as well as a number of math and utility functions for LED processing across the board. We decided that the name FastLED more accurately represents the totality of what the library provides, everything fast, for LEDs.
## For more information
Check out the official site http://fastled.io for links to documentation, issues, and news
*TODO* - get candy
没有合适的资源?快使用搜索试试~ 我知道了~
本项目是一个基于cocos2d-x,移植到单片机ESP32的实例
共221个文件
h:140个
cpp:52个
md:6个
需积分: 1 0 下载量 74 浏览量
2024-09-02
09:40:34
上传
评论
收藏 430KB ZIP 举报
温馨提示
本项目是一个基于cocos2d-x,移植到单片机ESP32的实例。 目前工程可以在ESP32模组/开发板上正确运行。 此工程的运行环境为 VSCode + PlatformIO + Espressif 32 Arduino , 请自行配置
资源推荐
资源详情
资源评论
收起资源包目录
本项目是一个基于cocos2d-x,移植到单片机ESP32的实例 (221个子文件)
glcdfont.c 8KB
dtSpriteCanvas.cpp 37KB
dtEventDispatcher.cpp 37KB
colorutils.cpp 33KB
dtActionInterval.cpp 27KB
dtScheduler.cpp 27KB
noise.cpp 23KB
hsv2rgb.cpp 23KB
DgfParser.cpp 21KB
dtNode.cpp 17KB
dtTypes.cpp 14KB
dtSprite.cpp 13KB
dtActionManager.cpp 13KB
dtArray.cpp 12KB
dtDirector.cpp 9KB
dtFileUtils-esp32.cpp 9KB
OneButton.cpp 9KB
ByteProtocol.cpp 9KB
dtAction.cpp 7KB
dtActionInstant.cpp 7KB
wiring.cpp 7KB
lib8tion.cpp 6KB
FastLED.cpp 6KB
dtFileUtils.cpp 6KB
power_mgt.cpp 6KB
Rect.cpp 5KB
main.cpp 4KB
Snake.cpp 4KB
colorpalettes.cpp 4KB
dtEventListenerButton.cpp 4KB
dtLayer.cpp 4KB
TripleClick.cpp 3KB
dtRenderer.cpp 3KB
Vec2.cpp 3KB
dtEventListenerPS2.cpp 3KB
Matrix.cpp 3KB
dtSpriteFrame.cpp 3KB
dtScene.cpp 2KB
dtAutoreleasePool.cpp 2KB
dtMacros.cpp 2KB
dtTransform.cpp 2KB
dtRef.cpp 2KB
dtEventListener.cpp 2KB
dot2d.cpp 2KB
dtRandom.cpp 2KB
dtEvent.cpp 1KB
dtEventPS2.cpp 1KB
Size.cpp 1KB
dtEventButton.cpp 1KB
dtGeometry.cpp 1KB
Button.cpp 1KB
bitswap.cpp 939B
dtScreen.cpp 0B
.gitignore 94B
.gitignore 27B
uthash.h 59KB
colorutils.h 58KB
utlish.h 53KB
lib8tion.h 36KB
FastLED.h 30KB
scale8.h 23KB
pixeltypes.h 23KB
chipsets.h 22KB
clockless_trinket.h 21KB
clockless_esp32.h 21KB
controller.h 20KB
fastspi_avr.h 19KB
fastspi_bitbang.h 16KB
fastspi_arm_k66.h 16KB
fastspi_arm_k20.h 16KB
pixelset.h 16KB
math8.h 15KB
fastpin_avr.h 15KB
dtVector.h 14KB
dtActionInterval.h 13KB
dtTypes.h 13KB
m0clockless.h 11KB
clockless_block_arm_k66.h 11KB
dtScheduler.h 11KB
clockless_block_arm_k20.h 10KB
fastpin.h 9KB
fastpin_arm_d21.h 9KB
dtNode.h 9KB
fastspi_arm_kl26.h 8KB
glcdfont.h 8KB
fastpin_arm_sam.h 8KB
dtSpriteCanvas.h 8KB
fastpin_arm_k66.h 7KB
dtArray.h 7KB
trig8.h 7KB
OneButton.h 7KB
bitswap.h 7KB
fastpin_arm_k20.h 7KB
dtSprite.h 7KB
fastpin_arm_nrf51.h 6KB
DgfParser.h 6KB
dtActionInstant.h 6KB
dtEventDispatcher.h 6KB
clockless_block_arm_sam.h 6KB
dtAction.h 6KB
共 221 条
- 1
- 2
- 3
资源评论
stormsha
- 粉丝: 7264
- 资源: 421
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功