This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESP32/8266 MP3 Player | |
esp8266audio lib | |
ESP32/8266, sdcard module, MAX98357A or PCM5102 | |
ESP32 D1 Mini | |
SD | ESP32 | |
3v3 | 3v3 | |
CS | 5 | |
MOSI | 23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bluetooth | |
import time | |
import socket | |
class bt_connection: | |
def __init__(self): | |
self.server = "XX:XX:XX:XX:XX:XX" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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()[:] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |