AStar32U4 library
|
Version: 1.1.0
Release date: 2019-03-05
www.pololu.com
This is a C++ library for the Arduino IDE that helps access the on-board hardware of the A-Star 32U4 controllers, which is a family of programmable controllers from Pololu based on the ATmega32U4. You can program an A-Star 32U4 directly from the Arduino IDE without using this library, but this library makes it easy to:
(Not all of these features are available on every A-Star 32U4. For more information about each particular A-Star controller, please refer to their documentation and respective product pages.)
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:
If this does not work, you can manually install the library:
Several example sketches are available that show how to use the library. You can access them from the Arduino IDE by opening the "File" menu, selecting "Examples", and then selecting "AStar32U4". If you cannot find these examples, the library was probably installed incorrectly and you should retry the installation instructions above.
The main classes and functions provided by the library are listed below:
This library also includes copies of several other Arduino libraries inside it which are used to help implement the classes and functions above:
The Pushbutton and FastGPIO libraries are generally useful and you might want to use them directly in your sketch. You can use these libraries automatically without any extra installation steps and without needing to add any extra #include
lines to your sketch.
You should avoid adding extra #include
lines such as #include <Pushbutton.h>
because then the Arduino IDE might try to use the standalone Pushbutton library (if you previously installed it), and it would conflict with the copy of the Pushbutton code included in the AStar32U4 library. The only #include
line needed to access all features of this library is:
For complete documentation, see https://pololu.github.io/a-star-32u4-arduino-library. If you are already on that page, then click on the links in the "Classes and functions" section above.
readBatteryMillivoltsLV4
and readBatteryMillivoltsLV3
functions to support both A-Star 32U4 Prime LV (ac03e) and existing LV A-Stars. Deprecated readBatteryMillivoltsLV
.isPlaying
method to malfunction sometimes when link time optimization is enabled.