Changeset 99


Ignore:
Timestamp:
23/07/2014 23:14:11 (6 years ago)
Author:
pulkomandy
Message:

Only toggle PD6.

Location:
blinkled
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • blinkled/atmega48p.hex

    r98 r99  
    33:1000200011C010C00FC00EC00DC00CC00BC00AC064
    44:1000300009C008C011241FBECFEFD2E0DEBFCDBF84
    5 :1000400002D01DC0DDCF2FE088E190E00FB6F8941C
     5:1000400002D01BC0DDCF2FE088E190E00FB6F8941E
    66:10005000A895809360000FBE2093600014BC84E0DC
    7 :1000600085BD8AB18FEF8AB98AEA8BB991E0A895EC
    8 :10007000A89BFDCF95BB8BB18F5F8BB9F8CFF89460
    9 :02008000FFCFB0
     7:1000600085BD569A1BB821E090E4A895A89BFDCFCA
     8:0E00700025BB8BB189278BB9F8CFF894FFCF51
    109:00000001FF
  • blinkled/main.c

    r97 r99  
    1919
    2020        //debug LED - output
    21         DDRD |= 255;
     21        DDRD |= (1<<PD6);
    2222
    23         PORTD = 0xAA;
     23        PORTD = 0;
    2424
    2525        while(1) {
     
    3030                if (TIFR & (1 << TOV0)) {
    3131                        TIFR = (1 << TOV0); // reset flag
    32                         PORTD++;
     32                        PORTD ^= (1<<PD6);
    3333                }
    3434        }
Note: See TracChangeset for help on using the changeset viewer.