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:
parent
f9135178d1
commit
c111f66112
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user