]> git.feebdaed.xyz Git - 0xmirror/WiringPi.git/commitdiff
#256 PiFace test, fix relais test
authormstroh76 <m.stroh76@gmail.com>
Sat, 10 Aug 2024 16:32:18 +0000 (18:32 +0200)
committermstroh76 <m.stroh76@gmail.com>
Sat, 10 Aug 2024 16:32:18 +0000 (18:32 +0200)
wiringPi/test/wiringpi_piface_test1.c

index c70861b2ab03cffa854acfc70a7ce8f9c9da7942..78619f34a5264be54642a4993124bc8139e85c59 100644 (file)
@@ -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);