瀏覽代碼

#256 PiFace test, fix relais test

pull/270/head
mstroh76 3 月之前
父節點
當前提交
211deebb1a
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      wiringPi/test/wiringpi_piface_test1.c

+ 3
- 0
wiringPi/test/wiringpi_piface_test1.c 查看文件

@@ -49,7 +49,10 @@ int main (int argc, char *argv []) {
const int RELAY1 = PIFACE+1;
const int RELAY1IN = PIFACE+7;


printf("\nRelays async:\n");
pullUpDnControl(RELAY0IN, PUD_UP);
pullUpDnControl(RELAY1IN, PUD_UP);
for (int loop = 0, end=3 ; loop<end ; ++loop) {
int sleep = defaultsleep*(end-loop);
printf("sleep %d ms:\n", sleep/1000);


Loading…
取消
儲存