Skip to content

Instantly share code, notes, and snippets.

View brysonian's full-sized avatar

Chandler McWilliams brysonian

View GitHub Profile
@brysonian
brysonian / feather_rp2040.js
Last active June 13, 2025 07:09
Ergogen footprint for the Adafruit Feather RP2040
// Adafruit Feather RP2040
// Params
// mounting: default is false
// if true, will add through holes sized for the Feather
module.exports = {
params: {
VBAT: { type: "net", value: "VBAT" },
EN: { type: "net", value: "EN" },
VBUS: { type: "net", value: "VBUS" },
@brysonian
brysonian / Thing.js
Created November 16, 2021 05:16
Ideas for loadModule in p5
export class Thing {
constructor(x=0, y=0) {
this.x = x;
this.y = y;
}
render() {
circle(this.x, this.y, 50, 50);
}
@brysonian
brysonian / audio.html
Created May 10, 2021 21:14
easy audio player
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>TITLE</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/fontawesome.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/solid.min.css" rel="stylesheet">
<style type="text/css">
#player {
@brysonian
brysonian / MPR121.ino
Created February 19, 2021 02:02
MPR121
#include <Wire.h>
#include "Adafruit_MPR121.h"
Adafruit_MPR121 cap = Adafruit_MPR121();
// Keeps track of the last pins touched
// so we know when buttons are 'released'
uint16_t lasttouched = 0;
uint16_t currtouched = 0;
@brysonian
brysonian / dist.ino
Created February 19, 2021 01:52
dist.ino
const int ECHO_PIN = 6;
const int TRIG_PIN = 5;
long duration;
int distance;
void setup() {
pinMode(TRIG_PIN, OUTPUT);
pinMode(ECHO_PIN, INPUT);
import React, {useEffect} from "react";
import { Helmet } from "react-helmet";
import "./styles.css";
import {
p0,
p1,
p2,
p3,
audioHeading,
import React, { useState } from 'react';
import PropTypes from 'prop-types';
import {
container,
cap,
fullHeight,
} from './style.module.css';
@brysonian
brysonian / musicMakerWing.ino
Created February 13, 2020 23:36
Demo of using Music Maker FeatherWing on Feather32u4
const int POT_PIN = A0;
// include SPI, MP3 and SD libraries
#include <SPI.h>
#include <SD.h>
#include <Adafruit_VS1053.h>
#define Reset -1
//These are pins used
#define CS 6//chip select
const int BUTTON_PIN = 9;
const int LED_PIN = 13;
int state = 0;
int lastVal = 0;
void setup() {
pinMode(LED_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);
}
@brysonian
brysonian / sequencer.ino
Last active December 4, 2019 17:53
Example of sequencing 3 LEDs without nested array
int tempo = 250; // just the delay in milliseconds at the end of loop
const int LED_PIN_1 = 12;
const int LED_PIN_2 = 11;
const int LED_PIN_3 = 10;
unsigned long counter = 0;
int measure = 4;
int sequence1[] = {