diff --git a/arduino_lite/analog.h b/arduino_lite/analog.h index 10aa62f..f71e3c4 100644 --- a/arduino_lite/analog.h +++ b/arduino_lite/analog.h @@ -1,3 +1,23 @@ +/* + * analog.h + * + * Lightweight macro implementation of Arduino style pin numbering + * for AVR microprocessors. Because only thing I want to use from + * Arduino libraries is the pin numbering scheme. + * + * This file taken 99% from the excellent ArduinoLite project by + * Shikai Chen . Some minor changes to suite my personal + * coding taste. + * + * http://code.google.com/p/arduino-lite/ + * http://www.csksoft.net/ + * + * Copyright (c) 2010-2011 Shikai Chen + * + * Licensed under the LGPL 2.1 license: + * http://www.opensource.org/licenses/lgpl-2.1.php + */ + #ifndef ANALOG_H #define ANALOG_H #include "pins.h" diff --git a/arduino_lite/digital.h b/arduino_lite/digital.h index 9831cd8..6d1acd5 100644 --- a/arduino_lite/digital.h +++ b/arduino_lite/digital.h @@ -1,3 +1,23 @@ +/* + * digital.h + * + * Lightweight macro implementation of Arduino style pin numbering + * for AVR microprocessors. Because only thing I want to use from + * Arduino libraries is the pin numbering scheme. + * + * This file taken 99% from the excellent ArduinoLite project by + * Shikai Chen . Some minor changes to suite my personal + * coding taste. + * + * http://code.google.com/p/arduino-lite/ + * http://www.csksoft.net/ + * + * Copyright (c) 2010-2011 Shikai Chen + * + * Licensed under the LGPL 2.1 license: + * http://www.opensource.org/licenses/lgpl-2.1.php + */ + #ifndef DIGITAL_H #define DIGITAL_H #include "pins.h" diff --git a/arduino_lite/main.c b/arduino_lite/main.c index 49d0deb..192d04f 100644 --- a/arduino_lite/main.c +++ b/arduino_lite/main.c @@ -1,7 +1,8 @@ /* - * Digital read 8bit data from PORTD3..7 PORTD0..1 (Arduino digital ports 3..9) - * and output it as binary string (10001101) to serial. Floating state is high. - * Connect pin to ground to set it low. + * Digital read 8bit data from Arduino digital ports 2..9 using fast macro + * implentation of pin numbering from ArduinoLite project. Output value + * as binary string (10001101) to serial. Floating state is high. Connect pin + * to ground to set it low. * * Led at Arduino digital 13 (PORTB5). Cause we all love blinken leds! * diff --git a/arduino_lite/pins.h b/arduino_lite/pins.h index e6a3829..274b592 100644 --- a/arduino_lite/pins.h +++ b/arduino_lite/pins.h @@ -1,18 +1,21 @@ /* - * ArduinoLite - * A lightweight runtime system for AVR chips - * by Shikai Chen (csk@live.com, http://www.csksoft.net) + * pins.h * - * pins_arduino_lit.h - Static Arduino Pin to AVR Pin mapping table + * Lightweight macro implementation of Arduino style pin numbering + * for AVR microprocessors. Because only thing I want to use from + * Arduino libraries is the pin numbering scheme. + * + * This file taken 99% from the excellent ArduinoLite project by + * Shikai Chen . Some minor changes to suite my personal + * coding taste. * - * ArduinoLite is based on the work of Arduino Project (arduino.cc) + * http://code.google.com/p/arduino-lite/ + * http://www.csksoft.net/ * - * Support AVR Chips - * Atmega8 - * Atmegax8 series: Atmega48 Atmega88 Atmega168 ... - * Attiny2313 - * Attiny26 - * Atmega1280 (not vaildated yet) + * Copyright (c) 2010-2011 Shikai Chen + * + * Licensed under the LGPL 2.1 license: + * http://www.opensource.org/licenses/lgpl-2.1.php */ #ifndef PINS_H