1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Revert "Update DigitalPotControl.ino"

This reverts commit f7a395fbdb22f72c3b2263f68bae7872e56bb73d.
This commit is contained in:
Martino Facchin 2018-04-12 10:23:40 +02:00
parent c7925653a2
commit 6023459dad

View File

@ -63,11 +63,9 @@ void loop() {
void digitalPotWrite(int address, int value) {
// take the SS pin low to select the chip:
digitalWrite(slaveSelectPin, LOW);
delay(100);
// send in the address and value via SPI:
SPI.transfer(address);
SPI.transfer(value);
delay(100);
// take the SS pin high to de-select the chip:
digitalWrite(slaveSelectPin, HIGH);
}