
The code I used worked: /* Read/write SD card This example shows how to read and write data to and from an SD card file Schematic: An SD card is created as follows with connected to the SPI bus ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 (for MKRZero SD: SDCARD_SS_PIN) created November 2010 by David A. Mellis and modified November 9, 2010. April 2012 by Tom Egoe. public domain.*/#include <SPI.h>#include <SD.h>//chipSelect = 53 for ArduinoMega//const int chipSelect = 53;const int chipSelect = 10;File myFile;void setup() { / / Open the serial communication and wait for the port to open: Serial.begin(9600); while (! serial) { ; // wait for serial port connection. Only required for native USB port } Serial.print("Initialize SD card."); if (!SD.begin(chipSelect)) {Serial.println("Initialization failed!"); during (1); } Serial.println("Initialization complete."); // Open file. Note that only one file can be open at a time, // so you must close that file before opening another. myFile = SD.open("test.txt", FILE_WRITE); // If the file opened normally, write in it: if (myFile) { Serial.print ("Write to test.txt."); myFile.println("test 4, 5, 6."); myFile.println("Sent via Arduino Mega."); // close file: myFile.close(); Serial.println("Done."); } Else { // If the file didn't open, print an error: Serial.println ("failed to open test.txt"); } // Open file again for reading: myFile = SD.open("test.txt"); if (myfile) {Serial.println("test.txt"); // read from the file until there is nothing left: while (myFile.available()) { Serial.write(myFile.read()); } // close file: myFile.close(); } Else { // If the file didn't open, print an error: Serial.println ("failed to open test.txt"); }}void loop() { // nothing happens after installation} Make sure you import data from GPS++ from their github and not from Arduino libraries. It also takes some time to actually get the location data. I had to be outside in low cloud to get the data and it took a few minutes. It also seems to be getting a fairly accurate altitude, but I'm not sure how accurate it is or why it's taking about 10 minutes to get the altitude even though it's getting longitude and latitude data.

55" TV LG OLED55C2RLA 2022 HDR, OLED, dark titanium
38 Review

π MCIGICM 2 Channel DC 5V Relay Module: Optocoupler Low Level Trigger Expansion Board for Arduino UNO R3, DSP, ARM, PIC, AVR, STM32, Raspberry Pi
11 Review

GeeekPi Raspberry Pi Cluster Case with Cooling Fan and Heatsink for Pi 4 Model B, 3 Model B+ & 3/2 Model B
11 Review

Vilros Raspberry Pi 4 4GB Complete Starter Kit - Black Fan-Cooled Aluminum Case for Heavy-Duty Performance
12 Review

36-Pack Black Rubber PC CPU/Case Fan Screws/Rivets Set for Computer
11 Review

π₯οΈ Helifouner 450-Piece Computer Standoffs Spacer Screws Kit: Ideal for Hard Drive, Motherboard, Fan, Power Graphics & Computer Cases
10 Review

π§ Premium Repair Replacement Screws & Tools for MacBook Pro Retina 15"/13" - Complete Bottom Case Set
10 Review

uxcell 3.5" HDD Screw Black 200pcs for Computer PC Case - Flat Phillips Head - 6#-32 - Hard Drive Fasteners
10 Review