picoCore icon indicating copy to clipboard operation
picoCore copied to clipboard

Support micros()

Open Kaspi314 opened this issue 5 years ago • 2 comments

It seems like delayMicrosecond would go hand in hand with supporting the micros() function. (like millis())

I'm not sure how to do this but I'll try to look into the datasheet about timers.

Kaspi314 avatar Jan 27 '21 19:01 Kaspi314

While microsecond delays are often needed for implementing protocols, the need for a microsecond-accurate timer is quite rare. Therefore this would be a low priority.

nerdralph avatar Feb 05 '21 14:02 nerdralph

Nothing comes to mind beyond laser range finding or something fast with a PID loop. I don't guess that the attiny is a great platform for it though and stm32 is more the norm for that. I guess milliseconds work well for most things especially with accuracy of 0.01 - 0.1ms.

Kaspi314 avatar Feb 08 '21 23:02 Kaspi314