Sampling Audio in Real Time

An analog input can't be a digital input. Remove both pinMode statements. It would be a good idea to give the pins better names than LEDpin1 and LEDpin2 since they have nothing to with LEDs.

Pete