| 数据搜索系统,热门电子元器件搜索 |
|
DFR0520 数据表(PDF) 13 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0520 数据表(HTML) 13 Page - DFROBOT |
|
13 / 13 page ![]() DigitalPotWrite(POT0_SEL, POT0_Dn); //set the resistance of POT0 DigitalPotWrite(POT1_SEL, POT1_Dn); //set the resistance of POT1 //DigitalPotWrite(BOTH_POT_SEL, BOTH_POT_Dn); //set the resistance of both potentiometers //DigitalPotWrite(POT0_SHUTDOWN, POT0_Dn); //put POT0 into shu ntdowm mode, ignore the second parameter //DigitalPotWrite(POT1_SHUTDOWN, POT1_Dn); //put POT1 into shu ntdowm mode, ignore the second parameter //DigitalPotWrite(BOTH_POT_SHUTDOWN, BOTH_POT_Dn); //put both potentio meters into shuntdowm mode, ignore the second parameter } void DigitalPotWrite(int cmd, int val) { // constrain input value within 0 - 255 val = constrain(val, 0, 255); // set the CS pin to low to select the chip: digitalWrite(CS_PIN, LOW); // send the command and value via SPI: SPI.transfer(cmd); SPI.transfer(val); // Set the CS pin high to execute the command: digitalWrite(CS_PIN, HIGH); } FAQ For any questions, advice or cool ideas to share, please visit the DFRobot Forum. https://www.dfrobot.com/wiki/index.php/Dual_Digital_Pot_(100K)_SKU:_DFR0520 12‐8‐17 |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |