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