Go Down

Topic: Problem: Win 10 auto ejects Mkrzero after pluggin in (Read 261 times) previous topic - next topic

s12345

Hi,
I've got a strange problem with my Mkrzero.
After I plug it in Win10 is ejecting it directly.

This was my code I wanted to test:

Code: [Select]



const uint8_t PB09 = 8;

void setup() {
  Serial.begin(9600);

}

void loop() {
Serial.println("LOOP");
analogReadTest();
}

void analogReadTest()
{
int sensorValue = analogRead(PB09);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage);
}


Did I destroy the board?
Or is there any fix I can do?

Thanks for the help!

Go Up