Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d09a51 commit 380241dCopy full SHA for 380241d
libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino
@@ -63,9 +63,11 @@ void loop() {
63
void digitalPotWrite(int address, int value) {
64
// take the SS pin low to select the chip:
65
digitalWrite(slaveSelectPin, LOW);
66
+ delay(100);
67
// send in the address and value via SPI:
68
SPI.transfer(address);
69
SPI.transfer(value);
70
71
// take the SS pin high to de-select the chip:
72
digitalWrite(slaveSelectPin, HIGH);
73
}
0 commit comments