Skip to content

Instantly share code, notes, and snippets.

View DominicMaas's full-sized avatar

Dominic Maas DominicMaas

View GitHub Profile
@DominicMaas
DominicMaas / rpi_pico_littlefs.h
Last active October 15, 2023 14:28
Not much testing, but this should work for using LittleFS with the Raspberry Pi Pico built in flash chip.
#pragma once
#include "pico/stdlib.h"
#include "pico/binary_info.h"
#include "hardware/flash.h"
#include "hardware/sync.h"
#include <lfs.h>
@DominicMaas
DominicMaas / build.sh
Created March 24, 2019 21:21
Build script for COMPX203. Assumes that the requires files in a bin folder next to the script.
#!/bin/bash
if [ "x$1" = "x" ]; then
echo "Arguments: ./build.sh <name of source file without the .s> <library file>"
else
echo "Starting super awesome compiling script!"
# Export the path so the libs exist, located on the bin path
export PATH=$PWD/bin:$PATH