-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Component: DocumentationRelated to Arduino's documentation contentRelated to Arduino's documentation content
Description
https://www.arduino.cc/en/Tutorial/DigitalPotControl
The code needs a delay to work:
void digitalPotWrite(int address, int value) {
// take the SS pin low to select the chip:
digitalWrite(slaveSelectPin, LOW);
delay(100);
// send in the address and value via SPI:
SPI.transfer(address);
SPI.transfer(value);
delay(100);
// take the SS pin high to de-select the chip:
digitalWrite(slaveSelectPin, HIGH);
}
Metadata
Metadata
Assignees
Labels
Component: DocumentationRelated to Arduino's documentation contentRelated to Arduino's documentation content