瀏覽代碼

Merge pull request #30 from KurtE/Example_fix_pin_setup

Example setup code bug
main
Paul Stoffregen 8 年之前
父節點
當前提交
67224c2ced
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      examples/DigitalPotControl/DigitalPotControl.ino

+ 1
- 1
examples/DigitalPotControl/DigitalPotControl.ino 查看文件

void setup() { void setup() {
// set the slaveSelectPin as an output: // set the slaveSelectPin as an output:
pinMode (slaveSelectPin, OUTPUT); pinMode (slaveSelectPin, OUTPUT);
pinMode (slaveSelectPin, HIGH);
digitalWrite (slaveSelectPin, HIGH);
// initialize SPI: // initialize SPI:
SPI.begin(); SPI.begin();
} }

Loading…
取消
儲存