Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da7693d

Browse filesBrowse files
committed
Merge remote-tracking branch 'megaavr-arduino/master' into nona4809+compat
2 parents ae148cf + eba33b8 commit da7693d
Copy full SHA for da7693d

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino

Copy file name to clipboardExpand all lines: libraries/SPI/examples/DigitalPotControl/DigitalPotControl.ino
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ void loop() {
6363
void digitalPotWrite(int address, int value) {
6464
// take the SS pin low to select the chip:
6565
digitalWrite(slaveSelectPin, LOW);
66+
delay(100);
6667
// send in the address and value via SPI:
6768
SPI.transfer(address);
6869
SPI.transfer(value);
70+
delay(100);
6971
// take the SS pin high to de-select the chip:
7072
digitalWrite(slaveSelectPin, HIGH);
7173
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.