中文版请看这里
Arduino-Lite is a lightweight high-performance firmware library for AVR MCUs, which is developed based on the original Arduino project. We make it easy to use, just like the Arduino. Compared to the original library, Arduino-Lite generates smaller binaries and perform faster.
And now, we are honored to introduce the Arduino-Lite to the public, and to make it open source.
The open source version of Arduino-Lite can be downloaded at Google Code: http://code.google.com/p/arduino-lite/
This is the first one of the series articles. Detailed usage of Arduino-Lite will be posted soon.
0. Supported Devices
Besides the standard Arduino controller boards based on Atmega328/168, all third-party boards using the following AVR chips are supported. We also published a driver-less AVR/51 programmer called RP USB Connector which is used internally by RoboPeak Team. The firmware of RP USB Connector is also developed with the Arduino-Lite library.
1. Why yet another library, and why to use it
Arduino and Arduino-Lite are both written with C++/C, and based on avr-gcc, but the Arduino-Lite has some pretty advantages:
Most binaries based on Arduino-Lite are 50% smaller than which based on Arduino.
Many functions provided by Arduino-Lite, such as DIGITAL_WRITE, which is equivalent to the digitalWrite in the Arduino, implemented by only one AVR instruction.
- More AVR chips and frequencies are supported
Besides Atmega8(A), Atmega168(PA), Atmega328(PA), Atmega1280, Arduino-Lite also supports Attiny2313, Attiny26, Atmega48(PA), Atmega88(PA)
Working frequencies supported by Arduino-Lite are ranging from 1Mhz to 20Mhz.
However, Arduino-Lite advances in following features as well:
- Self-contained, no third-party tools, compilers or libraries dependencies.
With Arduino-Lite, the only tool you need to develop, compile or burn to devices is the common text editor, which is delivered by most modern operating system.
Avr-gcc(WINAVR) and relative libraries comes with the Arduino-Lite package.
- Flexible and easy-to-integrate Makefile-based compiling system, but no more Makefile composing or generating operations are required.
The easiest way to create a new Arduino-Lite project is decompress the template and rename it. You can place your code in any place in the project directory. And Arduino-Lite will compile your project properly. You don’t need to modify/compose/generate Makefile anymore.
Continue reading Arduino-Lite, Lightweight AVR library developed by RoboPeak(1)