Skip to content

Instantly share code, notes, and snippets.

View witnessmenow's full-sized avatar

Brian Lough witnessmenow

View GitHub Profile
@witnessmenow
witnessmenow / FallingSandRGBMatrix.ino
Created August 12, 2019 23:14
Falling Sand project for RGB matrix with a MPU6050 acceloremeter
// WIP!!!
//--------------------------------------------------------------------------
// Animated 'sand' for Adafruit Feather. Uses the following parts:
// - Feather 32u4 Basic Proto (adafruit.com/product/2771)
// - Charlieplex FeatherWing (adafruit.com/product/2965 - any color!)
// - LIS3DH accelerometer (2809)
// - 350 mAh LiPoly battery (2750)
// - SPDT Slide Switch (805)
//
@witnessmenow
witnessmenow / wpa_supplicant.conf
Created June 14, 2018 15:46
Example wpa_supplicant.conf file for headless raspberry pi setup
country=ie
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="ssid"
psk="password"
}
@witnessmenow
witnessmenow / panelTest.ino
Created July 30, 2021 01:11
Matrix Panel Tester - For checking what settings work
/*******************************************************************
An example showing different size fonts in different colours
For use with my ESP32 Trinity or I2S Matrix Shield.
ESP32Trinity.com
Parts Used:
ESP32 D1 Mini * - https://s.click.aliexpress.com/e/_dSi824B
ESP32 I2S Matrix Shield (From my Tindie) = https://www.tindie.com/products/brianlough/esp32-i2s-matrix-shield/
@witnessmenow
witnessmenow / MAtrixHelloServer.ino
Created March 20, 2023 12:18
A proof that Matrix and Webserver can work in harmony
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
// ----------------------------
// Additional Libraries - each one of these will need to be installed.
// ----------------------------
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
@witnessmenow
witnessmenow / readme.md
Created April 18, 2021 20:23
Info on memory optimisation for ESP8266
@witnessmenow
witnessmenow / oauthSigTest.ino
Created July 6, 2022 20:14
OauthSignature ESP32 Example
#include "mbedtls/md.h"
#include "mbedtls/base64.h"
#include <UrlEncode.h>
String createNonce() {
String n;
n.reserve(32);
@witnessmenow
witnessmenow / Luba Terms Email.txt
Created June 4, 2022 17:44
My Terms for doing a review for the Luba
Hi Steve,
Thanks for the reply and the info.
I'm potentially interested in doing a video, I haven't fully decided. I do have some more clarifications if you wouldn't mind.
1) What is the timeline for the video? You say the kickstarter is in May, but May starts in less than 30 days and I would be very concerned about this.
- I have to get the device
- Set it up
/*******************************************************************
A telegram bot for your ESP32 that responds
with whatever message you send it.
Parts:
ESP32 D1 Mini stlye Dev board* - http://s.click.aliexpress.com/e/C6ds4my
(or any ESP32 board)
= Affilate
@witnessmenow
witnessmenow / pixeltime.ino
Last active May 26, 2021 00:03
Example for 2 64x64 matrix panels
/* Things I changed from the original pixelTime example:
* - Defined the PxMATRIX_MAX_HEIGHT and PxMATRIX_MAX_WIDTH (https://github.com/2dom/PxMatrix/issues/186)
* - Changed matrix_width and matrix_height defines (not sure if important)
* - Changed "display_draw_time" to 20 (defintly needs to be lower than the 60 it starts at)
* - Changed constructor: PxMATRIX display(128,64,P_LAT, P_OE,P_A,P_B,P_C,P_D,P_E);
* - Changed scan rate to 32: display.begin(32);
*
/*
// This is how many color levels the display shows - the more the slower the update
@witnessmenow
witnessmenow / tindie.js
Last active April 18, 2021 23:12
TindieApiToCSV
const axios = require('axios');
const createCsvWriter = require('csv-writer').createObjectCsvWriter;
let fsp = require("fs").promises;
const defaultWeight = '100';
const userName = 'tindieName'
const tindieAPIKey = '1234567865r4ewdfghgf'
function formatOrderForCSV (order){