| Electronic Components Datasheet Search |
|
DFR0520 Datasheet(PDF) 8 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0520 Datasheet(HTML) 8 Page - DFROBOT |
|
8 / 13 page ![]() const int POT0_SHUTDOWN = 0x21; const int POT1_SHUTDOWN = 0x22; const int BOTH_POT_SHUTDOWN = 0x23; /***********************Customized Varialbes**********************/ //resistance value byte (0 - 255) //The wiper is reset to the mid-scale position upon power-up, i.e. POT0_Dn = POT1_Dn = 128 int POT0_Dn = 128; int POT1_Dn = 128; int BOTH_POT_Dn = 128; //Function Declaration void DigitalPotTransfer(int cmd, int value); //send the command and the w iper value through SPI void setup() { Serial.begin(115200); pinMode(CS_PIN, OUTPUT); // set the CS_PIN as an output: SPI.begin(); // initialize SPI: } void loop() { // change the resistance on the POT0 from min to max: for (int POT_Dn = 0; POT_Dn < 256; POT_Dn++) { DigitalPotWrite(POT0_SEL, POT_Dn); delay(1); } // change the resistance on the POT0 from max to min: for (int POT_Dn = 0; POT_Dn < 256; POT_Dn++) { DigitalPotWrite(POT0_SEL , 255 - POT_Dn); delay(1); |
|
|
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 |