Version: 2.0.0
Release date: 2016-08-22
www.pololu.com
This is a C++ library for the Arduino IDE that makes it easy to temporarily pause USB interrupts and restore them later.
When you program an ATmega32U4 board such as the
Arduino Leonardo from the Arduino IDE, by
default it adds some code that runs in the background and maintains the USB
connection using interrupts. This code is part of the Arduino core, and the
main file is
USBCore.cpp.
Those USB interrupts call the board's RXLED0
, RXLED1
, TXLED0
, and TXLED1
macros which are defined in
pins_arduino.h
in order to blink the board's RX LED and TX LED. This library provides a way to
temporarily disable USB interrupts so that those pins can be used for other
purposes.
This library is tailored to the Arduino core code; it makes assumptions about which USB interrupts are enabled and how they work.
This library is designed to work with the Arduino IDE versions 1.0.x and 1.5.x, and will probably not work with earlier versions.
This library only supports boards based on the ATmega32U4.
If you are using version 1.6.2 or later of the Arduino software (IDE), you can use the Library Manager to install this library:
- In the Arduino IDE, open the "Sketch" menu, select "Include Library", then "Manage Libraries...".
- Search for "USBPause".
- Click the USBPause entry in the list.
- Click "Install".
If this does not work, you can manually install the library:
- Download the latest release archive from GitHub and decompress it.
- Rename the folder "usb-pause-arduino-xxxx" to "USBPause".
- Drag the "USBPause" folder into the "libraries" directory inside your Arduino sketchbook directory. You can view your sketchbook location by opening the "File" menu and selecting "Preferences" in the Arduino IDE. If there is not already a "libraries" folder in that location, you should make the folder yourself.
- After installing the library, restart the Arduino IDE.
- 2.0.0 (2016-08-22): Updated library to work with the Arduino Library Manager.
- 1.0.0 (2014-12-11): Original release.