⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f_8_5_ledflash_wdly.c

📁 PIC_Hi-Tech_C_Mike_Pearces_I2C_routines Microchi PIC_Hi-Tech C_I2C_for_EEPROM_24LC01B Code
💻 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 + -