diff --git a/Leuchtklotz/Leuchtklotz.atsuo b/Leuchtklotz/Leuchtklotz.atsuo index 23c99eb..14e05d7 100644 Binary files a/Leuchtklotz/Leuchtklotz.atsuo and b/Leuchtklotz/Leuchtklotz.atsuo differ diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf index 9145c08..67d96f0 100644 Binary files a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf and b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.elf differ diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex index 661333c..259762c 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.hex @@ -44,5 +44,5 @@ :1002B000FBDE2C2F30E045E050E064E070E08FE0A2 :1002C00090E0F2DE2C2F30E041E050E065E070E09D :1002D0008FE090E0E9DECF9108958FE387BB81BB8B -:0E02E000B7DF40DF82E3BFDFFDCFF894FFCF32 +:0E02E000B7DF40DF84E6BFDFFDCFF894FFCF2D :00000001FF diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss index ff82f26..ae6e2d1 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.lss @@ -15,19 +15,19 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY 5 .debug_aranges 00000080 00000000 00000000 00000ac9 2**0 CONTENTS, READONLY, DEBUGGING - 6 .debug_info 00001df9 00000000 00000000 00000b49 2**0 + 6 .debug_info 00001b2b 00000000 00000000 00000b49 2**0 CONTENTS, READONLY, DEBUGGING - 7 .debug_abbrev 00000237 00000000 00000000 00002942 2**0 + 7 .debug_abbrev 00000246 00000000 00000000 00002674 2**0 CONTENTS, READONLY, DEBUGGING - 8 .debug_line 000005a2 00000000 00000000 00002b79 2**0 + 8 .debug_line 00000554 00000000 00000000 000028ba 2**0 CONTENTS, READONLY, DEBUGGING - 9 .debug_frame 000001a4 00000000 00000000 0000311c 2**2 + 9 .debug_frame 000001dc 00000000 00000000 00002e10 2**2 CONTENTS, READONLY, DEBUGGING - 10 .debug_str 000001cf 00000000 00000000 000032c0 2**0 + 10 .debug_str 000001cf 00000000 00000000 00002fec 2**0 CONTENTS, READONLY, DEBUGGING - 11 .debug_loc 00000767 00000000 00000000 0000348f 2**0 + 11 .debug_loc 00000847 00000000 00000000 000031bb 2**0 CONTENTS, READONLY, DEBUGGING - 12 .debug_ranges 00000118 00000000 00000000 00003bf6 2**0 + 12 .debug_ranges 00000118 00000000 00000000 00003a02 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: @@ -508,8 +508,8 @@ int main(void) { //programWarnBlink(); //programColorFull(); - programRainbow(50); - 2e4: 82 e3 ldi r24, 0x32 ; 50 + programRainbow(100); + 2e4: 84 e6 ldi r24, 0x64 ; 100 2e6: bf df rcall .-130 ; 0x266 2e8: fd cf rjmp .-6 ; 0x2e4 diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map index 17d13c3..8a855ec 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.map @@ -14,9 +14,9 @@ Discarded input sections .text.programColorFull 0x00000000 0x7a Leuchtklotz.o .text.programWarnYellow - 0x00000000 0x9a Leuchtklotz.o + 0x00000000 0x86 Leuchtklotz.o .text.programCop - 0x00000000 0x142 Leuchtklotz.o + 0x00000000 0xa6 Leuchtklotz.o .text.programWarnBlink 0x00000000 0x136 Leuchtklotz.o .text.programHacker @@ -377,31 +377,31 @@ LOAD c:/program files (x86)/atmel/atmel toolchain/avr8 gcc/native/3.4.2.876/avr8 .debug_pubnames *(.debug_pubnames) -.debug_info 0x00000000 0x1df9 +.debug_info 0x00000000 0x1b2b *(.debug_info) - .debug_info 0x00000000 0x1df9 Leuchtklotz.o + .debug_info 0x00000000 0x1b2b Leuchtklotz.o *(.gnu.linkonce.wi.*) -.debug_abbrev 0x00000000 0x237 +.debug_abbrev 0x00000000 0x246 *(.debug_abbrev) - .debug_abbrev 0x00000000 0x237 Leuchtklotz.o + .debug_abbrev 0x00000000 0x246 Leuchtklotz.o -.debug_line 0x00000000 0x5a2 +.debug_line 0x00000000 0x554 *(.debug_line) - .debug_line 0x00000000 0x5a2 Leuchtklotz.o + .debug_line 0x00000000 0x554 Leuchtklotz.o -.debug_frame 0x00000000 0x1a4 +.debug_frame 0x00000000 0x1dc *(.debug_frame) - .debug_frame 0x00000000 0x1a4 Leuchtklotz.o + .debug_frame 0x00000000 0x1dc Leuchtklotz.o .debug_str 0x00000000 0x1cf *(.debug_str) .debug_str 0x00000000 0x1cf Leuchtklotz.o 0x203 (size before relaxing) -.debug_loc 0x00000000 0x767 +.debug_loc 0x00000000 0x847 *(.debug_loc) - .debug_loc 0x00000000 0x767 Leuchtklotz.o + .debug_loc 0x00000000 0x847 Leuchtklotz.o .debug_macinfo *(.debug_macinfo) diff --git a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec index fe1199f..0906652 100644 --- a/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec +++ b/Leuchtklotz/Leuchtklotz/Debug/Leuchtklotz.srec @@ -45,5 +45,5 @@ S11302A02C2F30E044E050E066E070E08FE090E016 S11302B0FBDE2C2F30E045E050E064E070E08FE09E S11302C090E0F2DE2C2F30E041E050E065E070E099 S11302D08FE090E0E9DECF9108958FE387BB81BB87 -S11102E0B7DF40DF82E3BFDFFDCFF894FFCF2E +S11102E0B7DF40DF84E6BFDFFDCFF894FFCF29 S9030000FC diff --git a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c index a77e1ea..cbedb09 100644 --- a/Leuchtklotz/Leuchtklotz/Leuchtklotz.c +++ b/Leuchtklotz/Leuchtklotz/Leuchtklotz.c @@ -138,23 +138,32 @@ void programRainbow(uint8_t t) void programWarnYellow(void) { - ledg(LED1,YELLOW); - _delay_ms(100); - ledg(LED1,BLACK); - ledg(LED2,YELLOW); - _delay_ms(100); - ledg(LED2,BLACK); - ledg(LED3,YELLOW); - _delay_ms(100); - ledg(LED3,BLACK); - ledg(LED4,YELLOW); - _delay_ms(100); - ledg(LED4,BLACK); + uint8_t t = 1; + for(uint8_t j=1;j<8;j++){ + for(uint8_t i=0;i<4;i++) { + fade((1<