It becomes unknown device in Windows 7 64bit
The com port to the Arduino disappear in the IDE
And I cannot upload another sketch to recover it..
What happened and what can I do? please help. =( =( =(
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
RF24 radio(9,10);
const uint64_t pipes[2] = {
0xF0F0F0F0AALL, 0xF0F0F0F0BBLL };
void setup(void)
{
Serial.begin(38400);
radio.begin();
radio.setRetries(15,15);
radio.setPayloadSize(8);
radio.openWritingPipe(pipes[0]);
radio.openReadingPipe(1,pipes[1]);
radio.printDetails();
}
void loop(void)
{
unsigned long time = millis();
Serial.print("Now sending %lu...");
Serial.println(time);
bool ok = radio.write( &time, sizeof(unsigned long) );
if (ok)
Serial.println("ok...");
else
Serial.println("failed.\n\r");
delay(1000);
}