main.bak

来自「采用模块化格式编写的基于PIC单片机的简单计算器」· BAK 代码 · 共 28 行

BAK
28
字号
#include "pic.h"
#include "myfuncs.h"
#include "keyboard.h"
#include "Segment74.h"
  __CONFIG (XT & LVPDIS & WDTDIS);
  
main()
{
	int i=0,k=9,ScrNum=0;
	delay(100);
	while(1);
/*	
	SEG_FONT_PORT_DIR=0x00;
	SEG_FONT_PORT=0x00;
	SEG_BITSEL_PORT_DIR=0xF0; // low 4 bits is selecting  bit 
	SEG_BITSEL_PORT=0x0;  //  deselect all 4 bits
	
	while(1)
	{
	  i=scankeypad();
	  if(i!=0)
	  {
	  	ScrNum=ScrNum*10+i;
	  }
	  Show4b(ScrNum);	  
	}
	*/
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?