Skip to content

Instantly share code, notes, and snippets.

import numpy as np
import numba
from numba import cuda, njit, jit, prange, vectorize
import time
import cv2
import math
dtype = np.uint16
maxval = np.iinfo(dtype).max
@ChuckMash
ChuckMash / ESP_MP3_Player_Pinout.txt
Last active January 9, 2024 01:33
ESP MP3 Player Pinout
ESP32/8266 MP3 Player
esp8266audio lib
ESP32/8266, sdcard module, MAX98357A or PCM5102
ESP32 D1 Mini
SD | ESP32
3v3 | 3v3
CS | 5
MOSI | 23
@ChuckMash
ChuckMash / wled_bluetooth_serial.py
Created December 3, 2022 08:11
WLED Bluetooth Serial POC
import bluetooth
import time
import socket
class bt_connection:
def __init__(self):
self.server = "XX:XX:XX:XX:XX:XX"
# https://www.youtube.com/watch?v=Q4uYGQLNi6c
# quick and dirty terminal render for WLED, USB serial required
import sys
import os
import serial
terminal_size = os.get_terminal_size()[:]
@ChuckMash
ChuckMash / gist:99f90434ff61df9470f18468d9cbe017
Created January 29, 2022 07:40
D1MINI Baud Rate Testing
Bytes - Baud: 115200, LEDS: 10, Effect: Noise3 FPS: 187 (avg of 500)
Bytes - Baud: 115200, LEDS: 50, Effect: Noise3 FPS: 60 (avg of 500)
Bytes - Baud: 115200, LEDS: 100, Effect: Noise3 FPS: 33 (avg of 500)
Bytes - Baud: 115200, LEDS: 150, Effect: Noise3 FPS: 23 (avg of 500)
Bytes - Baud: 115200, LEDS: 200, Effect: Noise3 FPS: 17 (avg of 500)
JSON - Baud: 115200, LEDS: 10, Effect: Noise3 FPS: 110 (avg of 500)
JSON - Baud: 115200, LEDS: 50, Effect: Noise3 FPS: 28 (avg of 500)
JSON - Baud: 115200, LEDS: 100, Effect: Noise3 FPS: 14 (avg of 500)
Bytes - Baud: 230400, LEDS: 10, Effect: Noise3 FPS: 261 (avg of 500)
Bytes - Baud: 230400, LEDS: 50, Effect: Noise3 FPS: 102 (avg of 500)