Hello, i have raspberry pi 3B and i'm programming in qt creator.
I'm having a problem using the Gordon's wiringPi, because in my background thread (where i continuosly monitor the input pulled up with a digital read function) if i run too fast using few ms of sleep (for example 10ms) between the reads, sometimes the digital read function detects a false rising or falling edge. Is necessary to wait for example 500ms between the reads ?
Because if i put 500ms of sleep between the read the ploblem is gone. Is it normal ?
Thank you.
I'm having a problem using the Gordon's wiringPi, because in my background thread (where i continuosly monitor the input pulled up with a digital read function) if i run too fast using few ms of sleep (for example 10ms) between the reads, sometimes the digital read function detects a false rising or falling edge. Is necessary to wait for example 500ms between the reads ?
Because if i put 500ms of sleep between the read the ploblem is gone. Is it normal ?
Thank you.
Statistics: Posted by markolino — Fri Oct 04, 2024 8:23 am