Blink protocol implementation in pure C