1 Star 0 Fork 0

DFRobot/DFRobot_RGBPanel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

RGBPanel Library for Arduino

This is a Library for RGBPanel,the function is control LED display image, string, set pixel and fill screen with one color.

Table of Contents

Summary

This is Library for RGBPanle,You can make it display the image, string, set pixel and fill screen with one color.

Methods


#include <DFRobot_RGBPanel.h>
/*
 * @brief The constructor
 */
DFRobot_RGBPanel();

/*
 * @brief Set the direction of scroll
 *
 * @param dir the direction
 *            Left: left
 *            Right: right
 *            None: stop scroll
 */
void scroll(unsigned char dir);

/*
 * @brief Clear screen
 */
void clear();

/*
 * @brief display string
 *
 * @param s String,and the length of string is no more than 40
 * @param col The color of LED
 *             QUENCH  quench LED
 *             RED     red
 *             GREEN   green
 *             YELLOW  yellow
 *             BLUE    blue
 *             PURPLE  purple
 *             CYAN    cyan
 *             WHITE   white
 */
void print(String s,unsigned char color);

/*
 * @brief display value
 *
 * @param val value
 * @param col The color of LED
 *             QUENCH  quench LED
 *             RED     red
 *             GREEN   green
 *             YELLOW  yellow
 *             BLUE    blue
 *             PURPLE  purple
 *             CYAN    cyan
 *             WHITE   white
 */
void print(int val,unsigned char color);

/*
 * @brief Display a bitmap
 *
 * @param picIndex the number of picture,range(0,23)
 * @param col The color of LED
 *             QUENCH  quench LED
 *             RED     red
 *             GREEN   green
 *             YELLOW  yellow
 *             BLUE    blue
 *             PURPLE  purple
 *             CYAN    cyan
 *             WHITE   white
 */
void display(unsigned char picIndex,unsigned char color);

/*
 * @brief set pixel
 *
 * @param x Horizontal coordinate, range(0,15)
 * @param y Vertical coordinate, range(0,7)
 * @param col The color of LED
 *             QUENCH  quench LED
 *             RED     red
 *             GREEN   green
 *             YELLOW  yellow
 *             BLUE    blue
 *             PURPLE  purple
 *             CYAN    cyan
 *             WHITE   white
 */
void pixel(unsigned char x,unsigned char y,unsigned char color); 

/*
 * @brief Fill screen with one color
 *
 * @param col Vertical coordinate, range(0,29)
 *             QUENCH  quench LED
 *             RED     red
 *             GREEN   green
 *             YELLOW  yellow
 *             BLUE    blue
 *             PURPLE  purple
 *             CYAN    cyan
 *             WHITE   white
 */
void fillScreen(unsigned char color); 

Compatibility

MCU Work Well Work Wrong Untested Remarks
Arduino Leonardo
Arduino Uno
FireBeetle-Board328P
FireBeetle-ESP32
FireBeetle-ESP8266

History

  • data 2017-11-15
  • version V1.0

Credits

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dfrobot/DFRobot_RGBPanel.git
git@gitee.com:dfrobot/DFRobot_RGBPanel.git
dfrobot
DFRobot_RGBPanel
DFRobot_RGBPanel
master

搜索帮助