Bug: Zero sent at end of TTL for LED Light

Fixed a bug where a zero was being assigned to the last point in the TTL
signal. The original code was terminating at n-1. The new code assigns
the correct value at the last index. Code tested and working.