Skip to content

Instantly share code, notes, and snippets.

View aaronjamt's full-sized avatar

Aaron Tulino aaronjamt

View GitHub Profile
@ConnerWill
ConnerWill / ANSI-escape-sequences.md
Last active July 25, 2024 04:58
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@aaronjamt
aaronjamt / rp2040_persistent_flash_storage.c
Last active February 29, 2024 19:20
RP2040 persistent storage using flash memory (Arduino)
#include "hardware/flash.h"
// The two primary functions that you would use are:
// bool read(uint8_t *output, uint8_t size);
// void write(uint8_t *data, uint8_t size);
// The read(...) function will either fill the *output buffer
// with size bytes (and return true), or will return false if
// there is no saved data available to be read.