Central location for pinout and config defines.
#define SD_CS_PIN
SD Card SPI CS Pin.
Definition PayloadConfig.h:62
#define SPI1_MOSI_PIN
SPI1 MOSI Pin.
Definition PayloadConfig.h:75
#define SPI1_SCK_PIN
SPI1 SCK Pin.
Definition PayloadConfig.h:73
#define SPI1_MISO_PIN
SPI1 MISO Pin.
Definition PayloadConfig.h:71
int attempt_number
Definition Device.h:19
Implementation of a Storage device to interface with an SD card.
Definition SDStorage.h:13
void storePacket(uint8_t *packet) override
Store data on the SD card.
Definition SDStorage.cpp:84
void store(String data) override
Store data on the SD card, ending with newline.
Definition SDStorage.cpp:60
String file_name
Definition SDStorage.h:15
SDStorage()
Construct a new SDStorage object.
Definition SDStorage.cpp:7
SPIClassRP2040 sd_spi_1
Definition SDStorage.h:17
bool verify() override
Verify SD card connection and create a new, unique file.
Definition SDStorage.cpp:15
Parent class for all data storage devices (sd card, radio, etc)
Definition Storage.h:13