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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DFR0382

DFR0382

  • 厂商:

    DFROBOT

  • 封装:

  • 描述:

    7 段 4 位 显示 Arduino 平台评估扩展板

  • 数据手册
  • 价格&库存
DFR0382 数据手册
LED Keypad Shield V1.0 SKU:DFR0382 Introduction The LED Keypad Shield is an Arduino expansion shield with a 4 digit 8 segment digital tube display (common cathode). It has 5 buttons that can be used as menu select buttons or control buttons. It uses I2C to drive the digital tube for an easy user experience. Specification      Arduino compatible Working voltage: 5V 4 digit 8 segment common cathode digital tube (0.56 inch) 5 input buttons (Driving pin: A0) Size: 53 * 54mm/2.05 * 2.12inches Pin Definition PIN Name Analog Pin 0 SCL(A5) SDA(A4) RST Description Button (select, top, right, bottom, left) I2C clock line I2C data line Reset Tutorial Requirements      Hardware DFRduino UNO x1 LED Keypad Shield x1 Software Arduino IDE V1.6.5 Click to Download Arduino IDE from Arduino® Connection Diagram This module's pin alignments allow it to stack directly on top of an Arduino UNO or similar microcontroller Sample Code Please install the following libraries for this code to function. LedKeypad Arduino library About Library installation. #include char brightness =0; char buf[5]="2456"; void setup() { ledkeypad.begin(); /*Enable*/ ledkeypad.setBrightness(0);/*Sets the brightness level*/ ledkeypad.display(2015);/*Display data*/ delay(5000); ledkeypad.display(buf);/*Display character for testing*/ for(int i=0;i '9') buf[0] = '0'; ledkeypad.display(0,buf[0]); break; case KEY_LEFT: buf[1]++; if(buf[1] > '9') buf[1] = '0'; ledkeypad.display(1,buf[1]); break; case KEY_UP: buf[2]++; if(buf[2] > '9') buf[2] = '0'; ledkeypad.display(2,buf[2]); break; case KEY_RIGHT: buf[3]++; if(buf[3] > '9') buf[3] = '0'; ledkeypad.display(3,buf[3]); break; case KEY_SELECT: brightness++; if(brightness > 7) brightness = 0; ledkeypad.setBrightness(brightness); break; default: break; } } Result The sample code is a simple clock for the module. Using the input buttons the time can be adjusted. Key functions are as follows: buttonfunction down The first digital tube +1 left The sencond digital tube +1 up The third digital tube +1 right The fourth digital tube +1 select adjusting brightness                                                    https://www.dfrobot.com/wiki/index.php/LED_Keypad_Shield_V1.0_SKU:DFR0382 8‐23‐18 
DFR0382 价格&库存

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

免费人工找货
DFR0382
    •  国内价格
    • 1+78.08233

    库存:0