MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
Classes | Macros
MeRGBLed.h File Reference

Header for MeRGBLed.cpp module. More...

`#include <stdint.h>`
`#include <stdbool.h>`
`#include <Arduino.h>`
`#include "MeConfig.h"`
`#include "MePort.h"`
Include dependency graph for MeRGBLed.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
struct | cRGB
| Class for RGB Led Module. More...
class | MeRGBLed
| Driver for W2812 full-color LED. More...

## Macros
#define | DEFAULT_MAX_LED_NUMBER (32)

## Detailed Description

Header for MeRGBLed.cpp module.

Author
  MakeBlock

Version
  V1.0.1

Date
  2017/06/23

Copyright
  This software is Copyright (C), 2014-2018, MakeBlock. Use is subject to license
  conditions. The main licensing options available are GPL V2 or Commercial:

Open Source Licensing GPL V2
  This is the appropriate option if you want to share the source code of your
  application with everyone you distribute it to, and you also want to give them
  the right to share who uses it. If you wish to use this software under Open
  Source Licensing, you must contribute all your source code to the open source
  community in accordance with the GPL Version 2 when your application is
  distributed. See http://www.gnu.org/copyleft/gpl.html

Description
  This file is a drive for WS2811/2812 full-color LED lights, It supports W2812B full-color LED lights device provided by the MakeBlock.

Method List:

1. void MeRGBLed::reset(uint8_t port)
2. void MeRGBLed::reset(uint8_t port,uint8_t slot)
3. void MeRGBLed::setpin(uint8_t port)
4. uint8_t MeRGBLed::getNumber()
5. cRGB MeRGBLed::getColorAt(uint8_t index)
6. void MeRGBLed::fillPixelsBak(uint8_t red, uint8_t green, uint8_t blue)
7. bool MeRGBLed::setColorAt(uint8_t index, uint8_t red, uint8_t green, uint8_t blue)
8. bool MeRGBLed::setColor(uint8_t index, uint8_t red, uint8_t green, uint8_t blue)
9. bool MeRGBLed::setColor(uint8_t red, uint8_t green, uint8_t blue)
10. bool MeRGBLed::setColor(uint8_t index, long value)
11. void MeRGBLed::show()

History:

      `<Author>`         `<Time>`        `<Version>`        `<Descr>`
      Mark Yan         2015/09/01     1.0.0            Rebuild the old lib.
      Mark Yan         2017/06/23     1.0.1            Add function fillPixelsBak.

DERIVED FROM light weight WS2812 lib V2.1 - Arduino support

Controls WS2811/WS2812/WS2812B RGB-LEDs Author: Tim (cpldc.nosp@m.pu@g.nosp@m.mail..nosp@m.com)

Jan 18th, 2014 v2.0b Initial Version March 7th, 2014 v2.1 Added option to retarget the port register during runtime Removes inlining to allow compiling with c++

License: GNU GPL v2 (see License.txt)