Changeset c57dd4c in avrstuff for blinkled/main.c
- Timestamp:
- Jul 23, 2014, 11:14:11 PM (10 years ago)
- Branches:
- main
- Children:
- 071dc14
- Parents:
- 49e72b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
blinkled/main.c
r49e72b6 rc57dd4c 19 19 20 20 //debug LED - output 21 DDRD |= 255;21 DDRD |= (1<<PD6); 22 22 23 PORTD = 0 xAA;23 PORTD = 0; 24 24 25 25 while(1) { … … 30 30 if (TIFR & (1 << TOV0)) { 31 31 TIFR = (1 << TOV0); // reset flag 32 PORTD ++;32 PORTD ^= (1<<PD6); 33 33 } 34 34 }
Note:
See TracChangeset
for help on using the changeset viewer.