Laser transmitter transmitts the whole alphabet instead of a single character

Take some basic tutorials in C. Learn that = is not the same as ==