8000
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.
2 parents c8f8d76 + 341a026 commit eba33b8Copy full SHA for eba33b8
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