STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
spiffs_write_byte.cpp File Reference
#include <Arduino.h>
#include <SPIFFS.h>
Include dependency graph for spiffs_write_byte.cpp:

Go to the source code of this file.

Functions

void setup ()
void loop ()

Variables

static const char * FILE_PATH = "/value.bin"
 ESP32 S3: write a single 8-bit integer to SPIFFS (root).
static const uint8_t VALUE_TO_WRITE = 31
bool success

Function Documentation

◆ loop()

void loop ( )

Definition at line 67 of file spiffs_write_byte.cpp.

References delay(), Serial, success, and VALUE_TO_WRITE.

◆ setup()

void setup ( void )

Definition at line 13 of file spiffs_write_byte.cpp.

References delay(), FILE_PATH, Serial, success, and VALUE_TO_WRITE.

Variable Documentation

◆ FILE_PATH

const char* FILE_PATH = "/value.bin"
static

ESP32 S3: write a single 8-bit integer to SPIFFS (root).

Standalone .cpp — no PlatformIO project; add to your build as needed.

Definition at line 9 of file spiffs_write_byte.cpp.

Referenced by setup().

◆ success

◆ VALUE_TO_WRITE

const uint8_t VALUE_TO_WRITE = 31
static

Definition at line 10 of file spiffs_write_byte.cpp.

Referenced by loop(), and setup().