From f4b9c8c3b3498495930b0c1de02370126ee8e65c Mon Sep 17 00:00:00 2001 From: RJ Nowling Date: Wed, 17 Sep 2025 12:12:00 -0500 Subject: [PATCH] Fix SD.open() for append The SD.open() method only accepts FILE_READ and FILE_WRITE -- FILE_APPEND is not defined. FILE_WRITE defaults to seeking to the end of the file and will facilitate an append operation. Fix example. --- .../getting-started-nano-connector-carrier/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/hardware/03.nano/carriers/nano-connector-carrier/tutorials/getting-started-nano-connector-carrier/content.md b/content/hardware/03.nano/carriers/nano-connector-carrier/tutorials/getting-started-nano-connector-carrier/content.md index b30444f240..5a297f4795 100644 --- a/content/hardware/03.nano/carriers/nano-connector-carrier/tutorials/getting-started-nano-connector-carrier/content.md +++ b/content/hardware/03.nano/carriers/nano-connector-carrier/tutorials/getting-started-nano-connector-carrier/content.md @@ -471,7 +471,7 @@ void loop() { unsigned long currentTime = millis(); if (currentTime - lastRecordTime >= RECORD_INTERVAL) { // Open the file for writing - dataFile = SD.open(fileName, FILE_APPEND); + dataFile = SD.open(fileName, FILE_WRITE); if (dataFile) { // Write timestamp and movement data to CSV file @@ -649,4 +649,4 @@ For additional project inspiration, check out the Arduino Project Hub or join th ## Conclusion -The Nano Connector Carrier transforms your Nano family board into a versatile platform capable of interfacing with different sensors, displays and storage options. By eliminating complex wiring and providing standardized pinouts, the Nano Connector Carrier allows you to focus on developing your application rather than dealing with connection issues. \ No newline at end of file +The Nano Connector Carrier transforms your Nano family board into a versatile platform capable of interfacing with different sensors, displays and storage options. By eliminating complex wiring and providing standardized pinouts, the Nano Connector Carrier allows you to focus on developing your application rather than dealing with connection issues.