Go Down

Topic: Problem: Win 10 auto ejects Mkrzero after pluggin in (Read 161 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy