Hi, I am using an arduino UNO to communicate wireless to another board and my RF module http://www.ebay.in/itm/ASK-RF-Transmitter-and-Receiver-module-/221553116682?pt=LH_DefaultDomain_203&hash=item339598460a does the encoding and decoding on its own. It has 4 data lines and i need to transmit 8 different data through them.
I tried writing analog data to the lines and it wouldn't work.
Now i am trying to send a train of data bytes (binary) through the digital pins one after the other example for action 1, the code can be 101. So the digitalpin quickly sends 1,0,1 through the module and to the other board where i gather all the bits together and perform the required task!
The digitalWrite takes a long time to do this. For sending in three different commands, there is bound to be lots of lag. Any other way possible? I have read somewhere that bitset works but i cannot find how.