summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/main.c b/main.c
index a067777..481757b 100644
--- a/main.c
+++ b/main.c
@@ -31,18 +31,41 @@ int main (void)
while(1)
{
temp++;
- PORTB=temp;
+ PORTB=~(1 << ((temp>>9)%6));
_delay_ms(1);
asm volatile(
BIT0
+ BIT1
+ BIT0
+ BIT0
+
+ BIT0
+ BIT0
BIT0
BIT0
+
+ BIT0
BIT0
BIT0
BIT0
+
BIT0
BIT0
BIT1
+ BIT1
+
+ BIT0
+ BIT0
+ BIT0
+ BIT0
+
+ BIT0
+ BIT0
+ BIT1
+ BIT0
+
+
+ BIT1
"rjmp done \n"
"loop:\n"
"dec r16\n"