led_right.c
来自「led projects using hitech c」· C语言 代码 · 共 20 行
C
20 行
#include<pic.h>
void delay(void)
{
unsigned int i;
for(i=0;i<=50000;i++)
{}
}
void main() //WDT_ON
{
TRISC=0x00; //make PORTC as output
PORTC=0x00;
PORTC=0b10000000; //0x80 send BLINKING value to all ports
while(1)
{
delay();
PORTC=PORTC>>1;
delay();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?