Cristian Maglie
a3dbb49c07
Merge of arduino-1.0.1. Work in progress...
2012-05-23 09:22:52 +02:00
Cristian Maglie
3786e337e0
Pre-merge upstream Arduino
2012-05-22 11:23:47 +02:00
David A. Mellis
810803c6d3
Merge remote-tracking branch 'upstream/master'
2012-05-21 09:31:54 -07:00
David A. Mellis
3e68702149
Updating SoftwareSerial pin mapping (pin change interrupts) for Leonardo.
2012-05-20 15:56:49 -07:00
Zach Eveland
e346d868b9
added pin change interrupt defines for Leonardo. fix for broken software serial on Leonardo
2012-05-19 22:05:46 -04:00
David A. Mellis
b495294aa3
Adding readString() and readStringUntil() to Stream (Adrian McEwen).
...
This isn't necessarily a particularly efficient implementation (it
allocates memory one character at a time and so may lead to
fragmentation) but it seems to work.
http://code.google.com/p/arduino/issues/detail?id=454
2012-05-16 15:39:34 -04:00
Zach Eveland
efa7593772
Mouse.isPressed() now checks only for left button by default
...
if no argument is given now checks left button by default to be consistent with press() and release() (thanks, David Mellis)
2012-05-15 15:48:51 -04:00
Zach Eveland
757a77ab67
renamed Leonardo USB_ class to USBDevice_ to be unambiguous. renamed "USB" object to "USBDevice" to prevent conflict with USB Host library (thanks Massimo)
2012-05-01 11:18:15 -04:00
Cristian Maglie
324023a67a
[sam] updated boards.txt from upstream
2012-04-28 15:47:19 +02:00
Zach Eveland
d755d0035d
changed PID values for Leonardo bootloader and sketch
...
done to avoid driver problems for users who installed the pre-release bootloader and driver
2012-04-25 15:56:18 -04:00
Zach Eveland
6ae1a17235
bugfix for configuring PWM on D6 and D13 too early. (thanks to Limor Fried)
...
was starting PWM on these pins too soon - in init() instead of when analogWrite() was called. as a result doing output on port registers directly failed.
2012-04-19 15:52:16 -04:00
Zach Eveland
56ddc4637d
bugfix for boards with a timer 4 but no channel D
...
compilation failed for Mega because the COM4D1 and OCR4D registers are defined for 32U4 but not for Mega
2012-04-19 15:46:32 -04:00
Zach Eveland
764f94d0f1
merged Caterina with Blink
2012-04-11 23:24:04 -04:00
Zach Eveland
49f7fb00fd
fixed logic bug in Caterina that could stop the bootloader from entering self-programming mode
2012-04-11 23:19:05 -04:00
Zach Eveland
e2e0260094
Micro I hardly knew ye
2012-04-09 10:12:14 -04:00
Zach Eveland
f9a4a4362d
Micro and Leonardo bootloaders for distribution are now merged with Blink sketch
2012-04-09 08:08:34 -04:00
Zach Eveland
ec83f55b62
sketch USB VID and PID values are passed in from boards.txt at compile time now. changed sketch PIDs to final values. also uncommented Micro section in boards.txt
2012-04-09 08:06:35 -04:00
Zach Eveland
afedb5a92b
PID and VID are no longer hard-coded in bootloader. instead they are passed in at compile-time from makefile. also added and renamed built bootloader images for Micro and Leonardo
2012-04-09 08:03:56 -04:00
Zach Eveland
ee611dc194
Revert "Revert "added a short delay and comment to boolean operator in CDC""
...
This reverts commit 200eefb4e2ac7796c5c901e8fd9369c85ec544c5.
2012-04-06 21:23:17 -04:00
Federico Vanzati
02c5849501
Revert "added a short delay and comment to boolean operator in CDC"
...
This reverts commit ade4893f585e3e94fa6cf683620e1d12afc88ecd.
2012-04-06 17:36:09 +02:00
Zach Eveland
dd55096901
added a short delay and comment to boolean operator in CDC
...
Delay fixes problem where the port has been configured but not quite opened. Federico found that 10 ms was the minimum time needed to avoid problems.
2012-04-03 10:52:38 -04:00
Zach Eveland
a984b581a8
added Boolean operators to HardwareSerial and CDC to test whether the port is ready to send data.
...
Mostly useful for Leonardo - simple way to test whether the port is actually opened by an application and ready to receive data. For Serial objects attached to real UARTs always returns true.
2012-04-01 12:54:35 -04:00
Thibaut VIARD
da1a7d4c67
[sam] prelimanary work on USB Device stack
2012-03-29 21:11:05 +02:00
Zach Eveland
1534b2b730
fixed logic error in Keyboard.release() - now removes every occurrence of a key if it's present more than once
2012-03-28 19:46:32 -04:00
Zach Eveland
83feb14013
removed horrible multi-key Keyboard.press() and Keyboard.release() methods
...
Saves 924 bytes of Flash
2012-03-28 18:46:10 -04:00
Zach Eveland
d3eabc9c01
eliminated Keyboard.type() - unnecessary duplication of Keyboard.write() (David Mellis). Also edit KeyboardReprogram example which was the only example using type()
2012-03-28 18:35:26 -04:00
Zach Eveland
58c36f76d5
added methods to Keyboard to handle multiple simultaneous key presses or releases (up to six each)
2012-03-26 17:28:02 -04:00
Zach Eveland
f646c9186d
Keyboard.type() now just presses and releases the key indicated - doesn't releaseAll()
2012-03-26 17:00:16 -04:00
Zach Eveland
9c040a8a2b
added stub methods for begin() and end() to Mouse and Keyboard
2012-03-26 16:02:40 -04:00
Zach Eveland
dbdf2dadfa
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
2012-03-24 09:30:17 -04:00
David A. Mellis
9a8976ce56
Putting ArduinoISP back to 19200 baud.
...
From 9600. And lowering the delay in the heartbeat from 40 to 20,
which seems to fix things again.
2012-03-15 19:02:08 -04:00
Zach Eveland
8c618773b5
reduced delay before starting the Leonardo bootloader
...
Since we use a magic RAM flag to signal to the bootloader there's a risk of the sketch overwriting the magic RAM location before the bootloader starts. By reducing the watchdog timeout we reduce the chance of this happening.
2012-03-14 18:17:22 -04:00
Zach Eveland
083f7c8891
bugfix for Caterina not starting sketch if "verify upload" turned off in IDE.
...
Previously, if avrdude skipped the upload step the read while write memory might never be reenabled. This would prevent the bootloader from ending and the sketch from starting - the bootloader just continued to run even after a successful upload. Now enable RWW when we receive the AVR109 "Exit bootloader" 'E' command. Had to disable lock bit changing support in the bootloader to free up flash for the change - will anyone miss it?
2012-03-14 17:48:11 -04:00
Zach Eveland
cd0db83a66
changed Caterina timeout after self-programming to 500 ms (from 250 ms)
...
attempt to fix bug reported by Dave Mellis:
"avrdude: ser_close(): can’t reset attributes for device: Invalid argument"
is thrown after attempting an upload in the IDE (though the upload seems to be successful)
2012-03-14 17:07:14 -04:00
Zach Eveland
75da79ad76
give Leonardo bootloader 250 ms to finish housekeeping before leaving self-programming mode
...
Earlier approach had bootloader end as soon as it was told to. On Linux this caused problems with avrdude because the microcontroller never had a chance to send an acknowledgement.
2012-03-08 14:20:12 -05:00
Zach Eveland
53e51de832
removed old version of Leonardo's caterina bootloader, replaced with LUFA-based caterina
2012-03-08 13:47:42 -05:00
Cristian Maglie
b407337677
Fix for some strange behaviours during board reset
2012-03-07 16:21:04 +01:00
Zach Eveland
1566006871
Added Keyboard support for all modifier and all common non-printing keys.
2012-03-03 23:37:39 -05:00
Zach Eveland
54fb0bf3f5
Removed support for key mapping in Keyboard.
...
Was no longer being used and would be damn near impossible to support with the new scheme for handling modifiers and non-printing keyboard characters.
2012-03-03 23:06:44 -05:00
Zach Eveland
fbea67532a
added Keyboard methods press(), release(), and releaseAll()
...
Changes mean that a single, persistent key report must be used so keys can be added or removed. Also reimplemented type() using the new methods.
2012-03-03 22:54:45 -05:00
Zach Eveland
74863e4bdf
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
...
Conflicts:
.gitignore
2012-03-03 13:28:39 -05:00
Zach Eveland
8f5869009c
fixed minor compilation warnings for Leonardo
2012-03-03 13:26:57 -05:00
David A. Mellis
4fade7007f
Small changes for the ATmega1284.
...
http://code.google.com/p/arduino/issues/detail?id=736
2012-03-02 18:58:53 -05:00
Zach Eveland
351817af47
reduced Caterina timeout to 8 seconds from 16
2012-03-01 08:51:47 -05:00
Zach Eveland
c8ca7f9636
changed auto-reset logic for Leonardo. only do WDT manipulation if the port is opened at 1200 bps. (Dave Mellis)
2012-03-01 08:51:16 -05:00
Zach Eveland
569b573d30
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
2012-03-01 08:32:21 -05:00
David A. Mellis
0c00db7809
Switching Mini w/ ATmega328 upload protocol from stk500 to arduino.
2012-02-29 17:25:46 -05:00
Cristian Maglie
73066a4ca2
Autoreset 1200 bps fix.
2012-02-27 17:41:38 +01:00
Zach Eveland
0138ee9b01
shortened the watchdog period for resetting Leonardo from 2 s to 250 ms. Reset into bootloader is much snappier.
2012-02-22 22:33:44 -05:00
Zach Eveland
66019a7550
Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
2012-02-22 15:19:32 -05:00