| Electronic Components Datasheet Search |
|
DFR0520 Datasheet(PDF) 13 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0520 Datasheet(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 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |