We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4a3a6 commit f7a395fCopy full SHA for f7a395f
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