We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f913517 commit c111f66Copy full SHA for c111f66
libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino
@@ -60,12 +60,12 @@ void loop() {
60
61
}
62
63
-int digitalPotWrite(int address, int value) {
+void digitalPotWrite(int address, int value) {
64
// take the SS pin low to select the chip:
65
digitalWrite(slaveSelectPin,LOW);
66
// send in the address and value via SPI:
67
SPI.transfer(address);
68
SPI.transfer(value);
69
// take the SS pin high to de-select the chip:
70
digitalWrite(slaveSelectPin,HIGH);
71
-}
+}
0 commit comments