📄 f_8_5_ledflash_wdly.c
字号:
#include "config.h"
#include "delay.h"
// use delay.h functions
// just flash LED on port RB1
// use this to test if PIC board is alive
void main(void)
{
TRISB1 = 0; // set RB1 as output
RB1 = 0; // turn RB1 off
while(1) { // note infinite loop, all PIC programs should
// be an infinite loop of some kind. Why? If the
// loop exited, what would the PIC do?
DelayMs(250); // a subroutine that implements a delay via loops
RB1 = 1; // turn on RB1
DelayMs(250);
RB1 = 0; // turn off RB1
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -