Fix delay_ns() tick calculation
Neaten LED-driver programming a little.