'this is a simple example to transmit using Easy Radio Modules INCLUDE "modedefs.bas" DEFINE OSC 20 ' ----------------- ' Define FR connection speed ' ----------------- baud CON 32 Start: OUTPUT PORTB.7 ' test output pin output PORTD.0 ' serial output to RF input PORTD.1 ' serial input from RF ' ----------------- ' Blink the test pin ' ----------------- high PORTB.7 pause 500 low PORTB.7 pause 500 ' ----------------- ' setup the RF channel ' ----------------- serout2 PORTD.0, baud,0,["ER_CMD#C4"] pause 20 serout2 PORTD.0, baud,0,["ACK"] ' ----------------- switchCountVar var byte switchCountVar = 1 MAIN: high PORTB.7 serout2 PORTD.0, baud,[switchCountVar] pause 50 switchCountVar = switchCountVar+1 low PORTB.7 pause 50 goto main