mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
Added 2017-2018 mars rover repository.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
int epin = 6;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
Serial1.begin(9600);
|
||||
Serial.println("listening");
|
||||
|
||||
pinMode(epin,OUTPUT);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
if(Serial1.available() > 0 ){
|
||||
while(Serial1.available() >0 ){
|
||||
Serial.write(Serial1.read());
|
||||
//Serial.println();
|
||||
}
|
||||
}
|
||||
digitalWrite(epin,HIGH);
|
||||
delay(100);
|
||||
Serial1.write("///SN=?\r\n");
|
||||
delay(10);
|
||||
digitalWrite(epin,LOW);
|
||||
delay(500);
|
||||
}
|
||||
Reference in New Issue
Block a user