Skip to content

Instantly share code, notes, and snippets.

@rpeaston
rpeaston / adalogger.ino
Last active December 30, 2025 00:53 — forked from ladyada/adalogger.ino
Made it actually write to disk after 50 lines in buffer
#include <SPI.h>
#include <SD.h>
// Set the pins used
#define cardSelect 4
File logfile;
// blink out an error code
void error(uint8_t errno) {