summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-03-16 15:38:04 +0100
committerFlorian Jung <flo@windfisch.org>2014-03-16 15:38:04 +0100
commit7072c3448916d4eb9e31b48a398bb3ccdb683df1 (patch)
tree3589db04a8438e57e514daacf2fa25f95ea322cd
parentecb2c5dc1ceef26d8495fa0c1cc2d128b804b65c (diff)
request controller button state
-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"