Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5001

Interfacing (DSI, CSI, I2C, etc.) • Re: 1mhz square wave

$
0
0
You could be the first to test out the new WiringPi Library 3.0 https://github.com/WiringPi/WiringPi
max frequency is ~20 MHz @ Pi5/RP1.
so try setting it 20 times, i guess (sleeping may be not accurate enough)

Code:

wiringPiSetupGpio();pinMode(17, OUTPUT);while(true){for (i=1;i<=20;i++) { DigitalWrite(17, HIGH); }for (i=1;i<=20;i++) { DigitalWrite(17, LOW); }}
but what you really need is PWM Function on RP1 (not implemented so far)

PS: all other library are way too slow for that :lol:

Statistics: Posted by evil — Thu Feb 29, 2024 4:04 pm



Viewing all articles
Browse latest Browse all 5001

Trending Articles