Quantcast
Viewing all articles
Browse latest Browse all 4899

Python • Re: Blink too slow

Be careful with the sleep times, 1/100th of a second is way too fast to be visible to the human eye.
Using logic analyzer eliminates that deficiency of human eye, see below posting.

If you want really fast toggle, use C and not Python, and you can toggle with 1MHz without issues on Pi4B:
viewtopic.php?t=289244

Code:

...   gpioHardwarePWM(gpioDin, 1000000, 500000);   for(;;)   {     gpioWrite(gpioDout, gpioRead(gpioDin));   }   ...

Statistics: Posted by HermannSW — Fri Feb 23, 2024 1:13 am



Viewing all articles
Browse latest Browse all 4899

Trending Articles