Skip to content

Instantly share code, notes, and snippets.

@lukefor
lukefor / btle.py
Created January 11, 2019 17:37
B910 bluetooth bulb beat detection https://www.youtube.com/watch?v=VolFFilKrfU
from __future__ import print_function
import sys
import numpy
#import pymedia.audio.sound as sound
import math
import queue
from ctypes import POINTER, c_ubyte, c_void_p, c_ulong, cast, c_short, c_ushort, c_float, c_uint, c_int
# From https://github.com/Valodim/python-pulseaudio