ATmega128 流水燈的兩種實(shí)現(xiàn)方法(基于AVR GCC)
#include
#define
#include
#include <avr/io.h>
#define delay_us(x)
#define delay_ms(x)
#define LED8
//PORTB 數(shù)據(jù)寄存器
//DDRB
//PINB
void system_init()
{
}
//流水燈
#define BIT(x) _BV(x)
unsigned int j;
unsigned char aa[]={
0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f
};
void main()
{
}
評(píng)論