for transmitter

square.c file for the transmitter