简介
Hi,大家好!我叫“Bright LED”。身高30mm,腰围22mm,有一颗明亮的大眼睛(3528LED)。我的特长是将电能转化为光能,我对能源的需求是DC-5V。亲~记住我了吗?
产品参数
- 工作电压:5V
- 工作电流:15-20mA
- 尺寸:30*22mm
引脚说明
| 标号 | 名称 | 功能描述 | 
|---|---|---|
| 1 | signal | 控制信号输入 | 
| 2 | VCC | 5v 电源+ | 
| 3 | GND | 5v 电源- | 
使用教程
准备
- 硬件
- UNO x1
- Bright LED 高亮LED模块 x1
- 杜邦线 若干
 
- 软件
- Arduino IDE 版本1.6.8 点击下载Arduino IDE
 
接线图
样例代码
    /***************************************************
    * Bright LED
    * ****************************************************
    *  Turns on an LED on for one second, then off for one second, repeatedly.
    * @author Dongzi(1185787528@qq.com)
    * @version  V1.0
    * @date  2016-5-26
    * All above must be included in any redistribution
    * ****************************************************/
    void setup() {
      // initialize digital pin 13 as an output.
       pinMode(13, OUTPUT);
    }
    // the loop function runs over and over again forever
    void loop() {
      digitalWrite(13, HIGH);    // turn the LED on (HIGH is the voltage level)
       delay(1000);              // wait for a second
      digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
      delay(1000);              // wait for a second
    }
结果
程序烧录好后,会看到LED亮1秒,熄灭1秒,循环变化。
常见问题
还没有客户对此产品有任何问题,欢迎通过qq或者论坛联系我们!
更多问题及有趣的应用,可以 访问论坛 进行查阅或发帖!

