Skip to content

Commit

Permalink
code is good, need to get the max232 chip working
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoscardi committed Mar 10, 2012
1 parent 424c437 commit 404bc81
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test_code/first_test/first_test.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

void setup(){
Serial.begin(9600);
Serial2.begin(115200);
}

void loop(){
byte versionName[120];
int i = 0;
for(i=0;i<120;i++){
versionName[i]=0;
}

Serial2.write('S');
delay(100);



while(Serial2.available()>0){
versionName[i]=Serial2.read();
i++;
}

for(i=0;i<120;i++){
Serial.print(versionName[i]);
}
Serial.print("\n");
delay(1000);
}

0 comments on commit 404bc81

Please sign in to comment.