Sleep() at home

JPDev@programming.dev to Programmer Humor@programming.dev – 590 points –
30

You are viewing a single comment

On microcontrollers that might be a valid approach.

I've written these cycle-perfect sleep loops before.

It gets really complicated if you want to account for time spent in interrupt handlers.

Thankfully I didn't need high precision realtime. I just needed to wait a few seconds for serial comm.

3 more...