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 6b4a3a6 + f7a395f commit 378736eCopy full SHA for 378736e
hardware/arduino/avr/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