|
Post by Admin on Jan 6, 2017 16:20:18 GMT
From v1.26 onwards, the Fast_digitalWrite() function now uses the Pxx_OMCR and Pxx_OMSR Sfrs to clear and set port pins. This means that pins can be toggled once every 40ns, corresponding to 25MHz. This is around 3x faster than when using the standard digitalWrite() function.
For applications that require fast pin access (e.g. FastLED), this is great!
We might be able to improve on this in v1.27...
|
|