From a941c5a42a476244569d9c0b97631dfc77f87462 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 4 Jun 2014 01:37:45 +0200 Subject: readme, license, foo --- main.c | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 826df0d..bad8df1 100644 --- a/main.c +++ b/main.c @@ -1,10 +1,28 @@ -/** - * Project: AVR ATtiny USB Tutorial at http://codeandlife.com/ - * Author: Joonas Pihlajamaa, joonas.pihlajamaa@iki.fi - * Base on V-USB example code by Christian Starkjohann - * Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH - * License: GNU GPL v3 (see License.txt) - */ +/* + Project: Rotary-Dial-To-USB Interface + Author: Florian Jung (flo@windfisch.org) + Copyright: (c) 2014 by Florian Jung and partially others (see below) + License: GNU GPL v3 (see LICENSE) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License version 3 as + published by the Free Software Foundation. + + This program 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 . + + + This project is based on the code for the AVR ATtiny USB Tutorial at + http://codeandlife.com/ by Joonas Pihlajamaa, joonas.pihlajamaa@iki.fi, + which is in turn based on the V-USB example code by Christian Starkjohann + (Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH) +*/ + #include #include #include @@ -66,6 +84,7 @@ static keyboard_report_t keyboard_report; // sent to PC volatile static uchar LED_state = 0xff; // received from PC static uchar idleRate; // repeat rate for keyboards + #define LED_BLUE (1<<5) #define LED_RED (1<<4) #define LED_GREEN (1<<3) @@ -222,10 +241,6 @@ int main() else PORTC &= ~LED_GREEN; -/* if (idle) - PORTC |= LED_GREEN; - else - PORTC &= ~LED_GREEN; */ if (oldidle == 42) // init { -- cgit v1.2.1