From 96c8385d247b699648d3f5c1a3a0e1fb82d33099 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 28 Jul 2014 22:56:40 +0300 Subject: Code cleanup --- hello.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/hello.c b/hello.c index e34ba06..2d1ba75 100644 --- a/hello.c +++ b/hello.c @@ -1,13 +1,3 @@ - -/** - * - * Blinking LED ATTiny85 "hello world" - * - * Following the tutorial at: - * http://www.instructables.com/id/Honey-I-Shrunk-the-Arduino-Moving-from-Arduino-t/?ALLSTEPS - * - */ - #include // F_CPU frequency to be defined at command line #include @@ -20,24 +10,18 @@ int main () { uint8_t high = 0; uint16_t ms = 0; - // setup LED pin for output in port B's direction register DDRB |= (1 << LED); - - // set LED pin LOW PORTB &= ~(1 << LED); while (1) { high = !high; if (high) { - // set LED pin HIGH PORTB |= (1 << LED); } else { - // set LED pin LOW PORTB &= ~(1 << LED); } - // delay for 500 ms for (ms = DELAY_MS; ms > 0; ms -= 10) { _delay_ms(10); } -- cgit v1.3.1