Skip to content

Instantly share code, notes, and snippets.

View witnessmenow's full-sized avatar

Brian Lough witnessmenow

View GitHub Profile
@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 / 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 / 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 / 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 / readme.md
Created April 18, 2021 20:23
Info on memory optimisation for ESP8266
@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){
@witnessmenow
witnessmenow / spotifyDisplay.ino
Last active November 9, 2020 17:54
HTTPS not working
/*******************************************************************
Displays Album Art on a ST7789
This example could easily be adapted to any Adafruit GFX
based screen.
NOTE: You need to get a Refresh token to use this example
Use the getRefreshToken example to get it.
Parts:
#define PxMATRIX_double_buffer true
#include <PxMatrix.h>
#define P_LAT 22
#define P_A 19
#define P_B 23
#define P_C 18
#define P_D 5
#define P_E 15