关于51编写的 光立方8*8
时间:10-02
整理:3721RD
点击:
/*
*程序功能:cube4光立方彩色版本,实现各种动画效果,配套取模软件
*
*/
#include <stc12c5a60s2.h>
#include <intrins.h>
#define uint unsigned int
#define uchar unsigned char
#define MAX_Delay 8
#define MIN_Delay 1
sbit S_1 = P1 ^ 1;
sbit S_2 = P1 ^ 2;
unsigned int pwm;
unsigned char TimeDelay = 10;
unsigned char Mode = 1;
unsigned char code tabP2[]={0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F}; //扫描
uchar s=0;
void DELAY_MS (uchar i){
//
问题不是很明确