adafruit / Adafruit_Seesaw

Arduino library driver for seesaw multi-use chip
93 stars 64 forks source link

Add Audio_Spectrum example #56

Closed PaintYourDragon closed 2 years ago

PaintYourDragon commented 2 years ago

This pairs up with a corresponding PR in Adafruit_seesawPeripheral. It demonstrates use of an FHT-enabled Seesaw device which performs live audio spectrum analysis.

The example reads from the Seesaw device and dumps all 64 spectrum “bins” to Serial out. A more interesting example might pair up with a display or LED matrix, but keeping this minimal to start. There was a Python script in another repo that paired up with a prototype of the FHT code…that same script still works with this example.

PaintYourDragon commented 2 years ago

Adafruit_seesawPeripheral is interdependent with this library and won’t build without certain #defines from here. So…can’t get that one passing CI until this one is updated. The changes here are pretty well encapsulated (mostly in the two seesaw_spectrum files) and shouldn’t affect anything else. The library version number was NOT bumped, no new release made, so probably no one will see this. If merging this causes mayhem, can revert.