arduino library, transmitter function