0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DFR0785

DFR0785

  • 厂商:

    DFROBOT

  • 封装:

  • 描述:

    按钮 人机接口 Gravity 平台评估扩展板

  • 数据手册
  • 价格&库存
DFR0785 数据手册
SKU:DFR0785 (https://www.dfrobot.com/product-2363.html) (https://www.dfrobot.com/product-2363.html) Introduction This is a simple LED-illuminated switch button with a transparent cap. It’s just like a basic switch button, but it lights up color(red/yellow/green/blue/white) when pressed down, which gives you visual feedback. These little buttons can be used with micro:bit to realize various fun interactive projects! Note: When pressed down, the module output high, and the LED lights up. Specification Operating Voltage: +3.3-5V (3.3V is recommended) Output: digital Connector: PH2.0-3P Dimension: 27×26.5mm LED Colors Available: red, yellow, green, blue, white Note: If pressed, this module will output high level and light LED up. If released, it will output low level and light LED out. Board Overview Num Silk-screen Description 1 D Control port 2 + VCC 3 - GND Graphic Programming Tutorial Connection Diagram Mind+ Graphic Programming 1. Download and install the software. Download address: http://mindplus.cc/en.html (http://mindplus.cc/en.html) Detailed tutorial: 2. Switch to "upload mode". Detailed tutorial: 3. In "expansion", select "Arduino Uno" in "main controller". Detailed tutorial: Sample Programm Function Description: When you first press the button, the LED on it will be lighten up, and the micro:bit dot matrix screen will display "√". When released, the LED will be off, and the screen will display "×". Program Effect: MakeCode Graphic Programming Click link to Basic operation tutorial for MakeCode (https://wiki.dfrobot.com/Makecode%20Getstarted%20Tutorial). Sample Program Function Description: When you first press the button, the LED on it will be lighten up, and the micro:bit dot matrix screen will display "√". When released, the LED will be off, and the screen will display "×". Program Effect: Tutorial for Arduino Connection Diagram Requirments Hardware Arduino UNO × 1 LED Switch Module × 1 Digital Cable × 1 Software Arduino IDE (https://www.arduino.cc/en/Main/Software) Sample Code /* Description: When you press the button for the first time, its inner LED will be lighten up. At t When you press the button again, its inner LED will be off, and the other one on pin */ int ledPin = 13; int inputPin = 2; // Select the pin of light // Sensor connect pin 2 void setup() { pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); } // Define the pin of light as output pin // Define the pin of button as input pin void loop(){ int val = digitalRead(inputPin); //Read input value int val = digitalRead(inputPin); //Read input value if (val == HIGH) { // Check if the input is high, high means the button i digitalWrite(ledPin, HIGH); // LED light is on } else { digitalWrite(ledPin, LOW); // LED light is off } } Program Effect: FAQ For any questions, advice or cool ideas to share, please visit the DFRobot Forum (https://www.dfrobot.com/forum/). More Documents DFshopping_car1.png Get LED Button (https://www.dfrobot.com/product-203.html) from DFRobot Store or DFRobot Distributor. (https://www.dfrobot.com/index.php? route=information/distributorslogo) Turn to the Top
DFR0785 价格&库存

很抱歉,暂时无法提供与“DFR0785”相匹配的价格&库存,您可以联系我们找货

免费人工找货
DFR0785
    •  国内价格
    • 1+221.77479

    库存:100