From 3dde05df71de402ca531b65236b5d4a52de23e39 Mon Sep 17 00:00:00 2001 From: Brett Hagman Date: Mon, 17 Mar 2014 12:04:21 -0400 Subject: [PATCH] Moved to MIT license. --- LICENSE.txt | 20 ++++++++++++++++++ SoftPWM.cpp | 56 ++++++++++++++++++++++++++++--------------------- SoftPWM.h | 49 ++++++++++++++++++++++++------------------- SoftPWM_timer.h | 34 +++++++++++++----------------- 4 files changed, 93 insertions(+), 66 deletions(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..704712f --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2014 Brett Hagman + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/SoftPWM.cpp b/SoftPWM.cpp index 13f6a35..952ce2e 100644 --- a/SoftPWM.cpp +++ b/SoftPWM.cpp @@ -1,27 +1,35 @@ -/* $Id: SoftPWM.cpp 132 2012-02-14 04:15:05Z bhagman@roguerobotics.com $ - - A Software PWM Library - - Written by Brett Hagman - http://www.roguerobotics.com/ - bhagman@roguerobotics.com - - Minor modification by Paul Stoffregen to support different timers - - This library is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -*************************************************/ +/* +|| @author Brett Hagman +|| @url http://wiring.org.co/ +|| @url http://roguerobotics.com/ +|| +|| @description +|| | A Software PWM Library +|| | +|| | Written by Brett Hagman +|| | http://www.roguerobotics.com/ +|| | bhagman@roguerobotics.com, bhagman@wiring.org.co +|| | +|| | A Wiring (and Arduino) Library, for Atmel AVR8 bit series microcontrollers, +|| | to produce PWM signals on any arbitrary pin. +|| | +|| | It was originally designed for use controlling the brightness of LEDs, but +|| | could be adapted to control servos and other low frequency PWM controlled +|| | devices as well. +|| | +|| | It uses a single hardware timer (Timer 2) on the Atmel microcontroller to +|| | generate up to 20 PWM channels (your mileage may vary). +|| | +|| # +|| +|| @license Please see the accompanying LICENSE.txt file for this project. +|| +|| @notes +|| | Minor modification by Paul Stoffregen to support different timers. +|| | +|| # +|| +*/ #include #include diff --git a/SoftPWM.h b/SoftPWM.h index 9ed681d..fd6adfe 100644 --- a/SoftPWM.h +++ b/SoftPWM.h @@ -1,25 +1,30 @@ -/* $Id: SoftPWM.h 129 2011-05-27 20:37:08Z bhagman@roguerobotics.com $ - - A Software PWM Library - - Written by Brett Hagman - http://www.roguerobotics.com/ - bhagman@roguerobotics.com - - This library is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -*************************************************/ +/* +|| @author Brett Hagman +|| @url http://wiring.org.co/ +|| @url http://roguerobotics.com/ +|| +|| @description +|| | A Software PWM Library +|| | +|| | Written by Brett Hagman +|| | http://www.roguerobotics.com/ +|| | bhagman@roguerobotics.com, bhagman@wiring.org.co +|| | +|| | A Wiring (and Arduino) Library, for Atmel AVR8 bit series microcontrollers, +|| | to produce PWM signals on any arbitrary pin. +|| | +|| | It was originally designed for use controlling the brightness of LEDs, but +|| | could be adapted to control servos and other low frequency PWM controlled +|| | devices as well. +|| | +|| | It uses a single hardware timer (Timer 2) on the Atmel microcontroller to +|| | generate up to 20 PWM channels (your mileage may vary). +|| | +|| # +|| +|| @license Please see the accompanying LICENSE.txt file for this project. +|| +*/ #ifndef SOFTPWM_H #define SOFTPWM_H diff --git a/SoftPWM_timer.h b/SoftPWM_timer.h index c801061..62516d6 100644 --- a/SoftPWM_timer.h +++ b/SoftPWM_timer.h @@ -1,23 +1,17 @@ -/* $Id: SoftPWM_timer.h 116 2010-06-28 23:31:02Z bhagman@roguerobotics.com $ - - A Software PWM Library - - Simple timer abstractions by Paul Stoffregen (paul at pjrc dot com) - - This library is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -*************************************************/ +/* +|| @author Paul Stoffregen (paul at pjrc dot com) +|| @contribution Brett Hagman +|| @url http://wiring.org.co/ +|| +|| @description +|| | A Software PWM Library +|| | +|| | Simple timer abstractions. +|| # +|| +|| @license Please see the accompanying LICENSE.txt file for this project. +|| +*/ #include #include