I have an Arduino MKRZero that I tried to load the following program into:
#include <FastLED.h>
#define NUM_LEDS 60
#define ledPin 4;
AudioFrequencyMeter meter;
CRGB leds[NUM_LEDS];
void setup() {
Serial.begin(9600);
meter.setBandwidth(70.00, 1500);
meter.begin(A0, 45000);
FastLED.addLeds<WS2812B, ledPin, RGB>(leds, NUM_LEDS);
}
void loop() {
float frequency = meter.getFrequency();
Serial.println(analogRead(A0));
}
After which, the Arduino IDE said: "Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload."
And windows gave this message:
The board is dead for all I can tell. The light still comes on when I connect it to my computer and when press reset, windows makes the "you just plugged something in" sound, but it doesn't work. Can anyone tell me what happened?
