/* Sample Arduino Sketch for * e-Gizmo EGRF-433A1-T * UHF Transmitter Module * Using VirtualWire Protocol * * This will work with all gizDuino and Arduino platform */ #include // DIO txpin assignment. Change pin assignment if you want to const byte txpin=14; // tx pin assigned to DIO 14 void setup() { vw_setup(4800); // Transmission speed at 4800bps vw_set_tx_pin(txpin); //tell VirtualWire which pin to use pinMode(txpin,OUTPUT); //Configure this pin as an output. VirtualWire wont do it for you } void loop() { char *msg="123456"; // test message "123456" // Send message via VirtualWire vw_send((uint8_t *)msg, strlen(msg)); // That's it! delay(300); }