please i need urgent programming help for my project...

Hi.I have bought rn131c wifly and want to connect it to arduino.But i am very much new t it and i dont know how to change the program for using it with wifly.The website link is “http://embeddedeye.com/forum/topics/ardueye-for-tam-chips-using
And the program is the “Tam4_OpticFlowExample_r1.zip” which is under “files” section.dint know how to attach file in this so sent link.I have copied a part of that program in this.It will be very very helpful of anyone who can tell me where should i change the code to make the date send through wifly.I will be very thankful if anyone could help me as soon as possible.Waiting for the reply.

#define TAM_BD_CLOCKPIN 7 // The chip clock pin CLK is connected to Arduino digital 7
#define TAM_BD_CLEARBAR 6 // The chip reset pin CLB is connected to Arduino digital 6
#define TAM_BD_ANALOG 0 // The chip analog out pin ANALOG is connected to Arduino digital 0

#define TAM2_IMAGESIZE 256 // Number of pixels in 16x16 Tam2 chip
#define TAM4_IMAGESIZE 128 // Number of pixels in 4x32 Tam2 chip

//-----------------------------------------------------------------------------
// Tam_InitArduino
// Initializes the Arduino
void Tam_InitArduino(char board) {
pinMode(TAM_BD_CLOCKPIN,OUTPUT);
pinMode(TAM_BD_CLEARBAR,OUTPUT);
}

//-----------------------------------------------------------------------------
// Tam2_LoadImage – Loads a 16x16 Tam2 image (256 pixels) into an
// array of shorts. Note that array img must be preallocated.
void Tam2_LoadImage(short *img) {
short i;

// reset Tam2 pixel counter by pulsing low the CLB line
digitalWrite(TAM_BD_CLEARBAR,LOW);
digitalWrite(TAM_BD_CLEARBAR,HIGH);
// read through pixels
for (i=0; i<TAM2_IMAGESIZE; ++i) {
// delay slightly
delayMicroseconds(10); // small delay to let analog pathway settle
// read in pixel
img = analogRead(TAM_BD_ANALOG);

  • // pulse clock line to advanced to next pixel*

  • digitalWrite(TAM_BD_CLOCKPIN,HIGH);*

  • digitalWrite(TAM_BD_CLOCKPIN,LOW);*

  • }*
    }
    //-----------------------------------------------------------------------------
    // Tam4_LoadImage – Loads a 4x32 Tam2 image (128 pixels) into an
    // array of shorts. Note that array img must be preallocated.
    void Tam4_LoadImage(short *img) {

  • short i;*

  • // reset Tam4 pixel counter by pulsing low the CLB line*

  • digitalWrite(TAM_BD_CLEARBAR,LOW);*

  • digitalWrite(TAM_BD_CLEARBAR,HIGH);*

  • // read through pixels*

  • for (i=0; i<TAM4_IMAGESIZE; ++i) {*

  • // delay slightly*

  • delayMicroseconds(10); // small delay to let analog pathway settle*

  • // read in pixel*
    img = analogRead(TAM_BD_ANALOG);
    * // pulse clock line to advanced to next pixel*
    * digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
    _
    }_
    _
    }_
    void Tam_LoadSubImage(short img, short skip, short load) {
    _
    short i;
    _
    * // reset Tam pixel counter by pulsing low the CLB line*
    * digitalWrite(TAM_BD_CLEARBAR,LOW);
    digitalWrite(TAM_BD_CLEARBAR,HIGH);
    _
    // Pulse clock to skip over unwanted pixels*_
    * for (i=0; i<skip; ++i) {*
    * digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
    _
    } _
    _
    // Acquire and store wanted pixels*_
    * for (i=0; i<load; ++i) {*
    * // delay slightly*
    * delayMicroseconds(10); // small delay to let analog pathway settle*
    * // read in pixel*
    img = analogRead(TAM_BD_ANALOG);
    * // pulse clock line to advanced to next pixel*
    * digitalWrite(TAM_BD_CLOCKPIN,HIGH);
    digitalWrite(TAM_BD_CLOCKPIN,LOW);
    _ }
    }_
    Tam4_OpticFlowExample_r1.pde (15.3 KB)
    TamLib_r1.pde (5.42 KB)
    OpticalFlow1D_r0.pde (6.74 KB)
    DumpImage_r1.pde (5.96 KB)*

So what's the rush that you need urgent programming help for?

because i have my project submission and i am not understanding this.Ill be very thankful to you if you could help me.

Do you have the existing code working to get the data out/displayed that the example has? While you get that working, post a link for info on the wireless part you want to add.

Yes sir,i do have the existing code working.when i upload the code in arduino and open serial monitor i do get the output.The program is working fine and i am getting the output from the arduino.Now i want to add a wireless module “RN131C GSX wifly module” so that i can send wireless commands to arduino from computer and get the output from the arduino witlessly on computer.All the connections are made.All the hardware part is done.I mean connecting RX/TX of wifly to rx/tx of arduino etc.Now i just dont know what changes do i have to make in the program to send and receive commands through wifly.Thank you so much for your time sir.

and get the output from the arduino witlessly on computer.

A lot of people want to do that. A few even want to do it wirelessly.

So... do I understand you correctly? You have a class assignment due and you want us to do your assignment for you?