Skip to content

Instantly share code, notes, and snippets.

@ymt117
Created June 30, 2019 14:56
Show Gist options
  • Save ymt117/1f59dfb1ec07dfea1423e7de7f0307cf to your computer and use it in GitHub Desktop.
Save ymt117/1f59dfb1ec07dfea1423e7de7f0307cf to your computer and use it in GitHub Desktop.
100kinSAT - GPSセンサから値を所得するコード
HardwareSerial gps(2);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("start");
gps.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(gps.available()){
Serial.write(gps.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment