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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DFR0789

DFR0789

  • 厂商:

    DFROBOT

  • 封装:

  • 描述:

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

  • 数据手册
  • 价格&库存
DFR0789 数据手册
SKU:DFR0789 (https://www.dfrobot.com/product-2350.html) (https://www.dfrobot.com/product-2350.html) Introduction This is a simple LED-illuminated self-lock switch button. 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, such as, switch, backlight keyboard, music player panel, recording control panel, etc. Specification Operating Voltage: +3.3-5V (3.3V is recommended) Output: digital Connector: PH2.0-3P Dimension: 27×26.5mm Colors Available: red yellow green blue white Colors Available: red, yellow, green, blue, white Note: The module comes with self-lock function. When the button is pressed down, the module outputs High, and the LED lights up. When being pressed again, the module outputs Low and the LED turns off. Board Overview Num Silk-screen Description 1 D Control port 2 + VCC 3 GND 3 Num Silk screen GND Description 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) 2. Switch to "offline mode". Detailed tutorial: https://mindplus.dfrobot.com/microbit (https://mindplus.dfrobot.com/microbit) 3. In "expansion", select "Arduino Uno" in "main controller". 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 you press the button again, 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 you press the button again, the LED will be off, and the screen will display "×". Program Effect: Tutorial for Arduino Connection Diagram Requirements 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 Switch (https://www.dfrobot.com/product-2350.html) from DFRobot Store or DFRobot Distributor. (https://www.dfrobot.com/index.php? route=information/distributorslogo) Turn to the Top
DFR0789 价格&库存

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

免费人工找货