Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Patch for New Arduino Leonardo Board support
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charles Walker  
View profile   Translate to Translated (View Original)
 More options Aug 26 2012, 2:37 am
From: Charles Walker <charles.walker...@gmail.com>
Date: Sat, 25 Aug 2012 23:37:52 -0700 (PDT)
Local: Sun, Aug 26 2012 2:37 am
Subject: Patch for New Arduino Leonardo Board support

Hello,

I ve bought a new Arduino board "Arduino Leonardo" : http://arduino.cc/en/Main/arduinoBoardLeonardo
This card is the same as Arduino UNO with a Real USB stack (I think it will become popular in a near future). Due to its USB support the serial has been change (default serial is USB) and to be able to use it with the Xbee library I had to change some things in the Xbee library.

Here is the patch :

Index: XBee.cpp
===================================================================
--- XBee.cpp    (revision 42)
+++ XBee.cpp    (working copy)
@@ -766,7 +766,12 @@
        _response.init();
        _response.setFrameData(_responseFrameData);
        // default
-       _serial = &Serial;
+#if defined(USBCON)
+   _serial = &Serial1;
+#else
+   _serial = &Serial;
+#endif
+
 }

 uint8_t XBee::getNextFrameId() {

It is still compatbile with Arduino Uno. It break nothing...only add the support of Arduino Leonardo. This patch was originaly propose on Arduino support forum here :

http://arduino.cc/forum/index.php/topic,111354.0.html

Can you please integrate it on the repository ?

Thx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »