sample transmitter code as starting point