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/ard … hips-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);
}
}

Why don’t you do a google search on how to send information with the Wifly module? It’s hard to tell what your current code does. Why don’t you explain that? Also, how are you planning on getting the date? [This could be helpful. Good luck on figuring it out!](http://www.sparkfun.com/products/99)