diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2021-05-26 15:50:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-26 15:50:02 +0200 |
commit | 24e6edd475c287cdafee0a4db2eb98927ce3cf58 (patch) | |
tree | b3251605dc629e3bbc8ab899b4f4ffe66b1e1e98 /libraries/SPI/examples/DigitalPotControl | |
parent | 1ac42f7ac0c365cfa4d901889ff6d4c23d3b4796 (diff) | |
parent | 20dc2e532e5cecd17a7f463cf86541d87e5090e8 (diff) |
Merge pull request #413 from per1234/ci
Use GitHub Actions for continuous integration
Diffstat (limited to 'libraries/SPI/examples/DigitalPotControl')
-rw-r--r-- | libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino b/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino index 8719058..39e5bf9 100644 --- a/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino +++ b/libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino @@ -14,7 +14,7 @@ The circuit: * All A pins of AD5206 connected to +5V * All B pins of AD5206 connected to ground - * An LED and a 220-ohm resisor in series connected from each W pin to ground + * An LED and a 220-ohm resistor in series connected from each W pin to ground * CS - to digital pin 10 (SS pin) * SDI - to digital pin 11 (MOSI pin) * CLK - to digital pin 13 (SCK pin) @@ -27,7 +27,7 @@ */ -// inslude the SPI library: +// include the SPI library: #include <SPI.h> @@ -64,7 +64,7 @@ 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: + // send in the address and value via SPI: SPI.transfer(address); SPI.transfer(value); delay(100); |