瀏覽代碼

Update analog.c

teensy4-core
Mike S 5 年之前
父節點
當前提交
214071e0cd
No account linked to committer's email address
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. +0
    -2
      teensy4/analog.c

+ 0
- 2
teensy4/analog.c 查看文件

@@ -78,7 +78,6 @@ void analogReadAveraging(unsigned int num)
ADC1_GC &= ~0x20;

mode = ADC1_CFG & ~0xC000;

if (num >= 32) {
mode |= ADC_CFG_AVGS(3);
//Serial.println(ADC_CFG_AVGS(3), BIN);
@@ -89,7 +88,6 @@ void analogReadAveraging(unsigned int num)
} else {
mode |= ADC_CFG_AVGS(0);
}

ADC1_CFG = mode;
//enable averaging

Loading…
取消
儲存