Skip to content

Commit c111f66

Browse files
committed
Corrected the return type of the digitalPotWrite in the SPI/DigitalPotControl example
Fixes arduino#1063
1 parent f913517 commit c111f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ void loop() {
6060

6161
}
6262

63-
int digitalPotWrite(int address, int value) {
63+
void digitalPotWrite(int address, int value) {
6464
// take the SS pin low to select the chip:
6565
digitalWrite(slaveSelectPin,LOW);
6666
// send in the address and value via SPI:
6767
SPI.transfer(address);
6868
SPI.transfer(value);
6969
// take the SS pin high to de-select the chip:
7070
digitalWrite(slaveSelectPin,HIGH);
71-
}
71+
}

0 commit comments

Comments
 (0)