diff options
author | Florian Jung <flo@windfisch.org> | 2014-03-16 15:38:04 +0100 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-03-16 15:38:04 +0100 |
commit | 7072c3448916d4eb9e31b48a398bb3ccdb683df1 (patch) | |
tree | 3589db04a8438e57e514daacf2fa25f95ea322cd | |
parent | ecb2c5dc1ceef26d8495fa0c1cc2d128b804b65c (diff) |
request controller button state
-rw-r--r-- | main.c | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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" |