1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-06 01:08:25 +01:00

Corrected the return type of the digitalPotWrite in the SPI/DigitalPotControl example

Fixes #1063
This commit is contained in:
Fede85 2013-04-24 10:45:22 +02:00
parent f9135178d1
commit c111f66112

View File

@ -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: // take the SS pin low to select the chip:
digitalWrite(slaveSelectPin,LOW); digitalWrite(slaveSelectPin,LOW);
// send in the address and value via SPI: // send in the address and value via SPI: