replace delay()

robtillaart:
pointer math, definitely faster!

At the assembly code level, yes. However, for several decades, optimising compilers have been recoding loops that access array elements sequentially as loops that increment pointers. So you won't necessarily see any improvement when you code in C/C++.