From c111f6611247df8a5c29556dc37df34ec295b3dd Mon Sep 17 00:00:00 2001 From: Fede85 Date: Wed, 24 Apr 2013 10:45:22 +0200 Subject: [PATCH] Corrected the return type of the digitalPotWrite in the SPI/DigitalPotControl example Fixes #1063 --- .../SPI/examples/DigitalPotControl/DigitalPotControl.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino b/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino index ef97dae88..adf93a2c1 100644 --- a/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino +++ b/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino @@ -60,7 +60,7 @@ void loop() { } -int digitalPotWrite(int address, int value) { +void digitalPotWrite(int address, int value) { // take the SS pin low to select the chip: digitalWrite(slaveSelectPin,LOW); // send in the address and value via SPI: @@ -68,4 +68,4 @@ int digitalPotWrite(int address, int value) { SPI.transfer(value); // take the SS pin high to de-select the chip: digitalWrite(slaveSelectPin,HIGH); -} \ No newline at end of file +}