Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // main.c
- if(sec_flag) {
- randDraw(64, 64, bird);
- sec_flag = 0;
- }
- // time.h
- extern int sec_flag;
- // time.c
- void timer2_ISR() interrupt 5
- {
- sys_time++;
- if(sys_time % 1000 == 0) {
- sec_flag = 1;
- }
- TF2H = TF2L = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement