Pages: [1]   Go Down
Author Topic: Arduino Leonardo error  (Read 3338 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Physics works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got my Arduino Leonardo connected to my computer for the first time and it's coming up with an error...

I ignored the error and used the Arduino compiler to upload the code to the Leonardo

Here is the code:
Code:
void setup()
{
  pinMode(2, INPUT);
  digitalWrite(2,HIGH);
  
  Keyboard.begin();
  
  while(digitalRead(2))
  {
  }
  
  Keyboard.println("Arduino Leo Keyboard function test");
  delay(1000);
  Keyboard.println("Test version 1.0.1");
  delay(1000);
  Keyboard.write(48); // character 0
  delay(2500);
  Keyboard.press(KEY_BACKSPACE);
  delay(1000);
  Keyboard.releaseAll();
  
}

void loop()
{
}
 

When I try to upload, an error message pops up: "Couldn't find a Leonardo on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's rest button after initiating the upload." (There is a reset button but it doesn't seem to work... smiley-roll-sweat or I'm not using it right)

When I click "Serial Port Monitor" on "Tools" bar, again an error message pops up: "Serial port 'COM6' not found. Did you select the right one from the Tools > Serial Port Menu?"


Questions:
1. How do I rest the Arduino Leonardo board?
2. How do I upload any code to Arduino Leonardo board?
« Last Edit: October 20, 2012, 09:53:05 pm by successfulfailure » Logged

Global Moderator
Online Online
Brattain Member
*****
Karma: 481
Posts: 18742
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Immediately after starting the upload press and release reset on the Leonardo. With luck it should upload correctly then.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 9
Physics works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Still comes up with that same error...  smiley-sad (I've tried many different USB ports on my laptop...)
Logged

Austin, TX
Offline Offline
Newbie
*
Karma: 0
Posts: 22
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Same problem in a different thread: http://arduino.cc/forum/index.php?topic=130161.0
The solution there fixed this problem for me too.
Logged

Pages: [1]   Go Up
Jump to: