📄 out.c
字号:
#include<reg51.h>
#include<absacc.h>
#include<stdio.h>
#define uint unsigned int
#define uchar unsigned char
#define PORT XBYTE[0x0fff0]
extern void delay(uint x);
void out(uchar state){
code uchar table[]={
0x0a,0x09,0x05,0x06};
// P1=table[state];
XBYTE[0x7000] ^=0x01;//table[state];
printf("%d\n",table[state]);
PORT=table[state];
delay(8);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -