Hi, I am designing a remote controlled system using an arduino uno board and a msp430 launchpad with the ASK RF module (HT12E and HT12D ICs).
I am using the msp430 as the transmitter and the arduino uno for the reciever because of requirements of my application.
Being familiar with Arduino, i am trying to use energia to program the msp430 with the VirtualWire library.
#include <VirtualWire.h>
int button = P2_2;
int transmit_pin = P2_1;
int a,counter=0;
char msg[4];
void setup()
{
vw_set_tx_pin(transmit_pin);
vw_setup(2000); // Bits per sec
pinMode(button,INPUT)