Music Visualizer with spark core, 8x8 led backpack, & microphone

For general porting questions like your “Wire.h” question, there is a short thread to have a look

In connection with FFT there are two threads on this forum, but I’ve not read through them, tho’

For your other question:
A0 would be fine and you’d use 4095 (should also be 1023 in Adafruit code ;-))