Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
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"

Go to the source code of this file.


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



Detailed Description

Header for MeRGBLed.cpp module.

This software is Copyright (C), 2012-2016, 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
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. bool MeRGBLed::setColorAt(uint8_t index, uint8_t red, uint8_t green, uint8_t blue)
  7. bool MeRGBLed::setColor(uint8_t index, uint8_t red, uint8_t green, uint8_t blue)
  8. bool MeRGBLed::setColor(uint8_t red, uint8_t green, uint8_t blue)
  9. bool MeRGBLed::setColor(uint8_t index, long value)
  10. void MeRGBLed::show()
<Author>         <Time>        <Version>        <Descr>
Mark Yan         2015/09/01     1.0.0            Rebuild the old lib.

Macro Definition Documentation