谁知道单片机水滴实验的原理啊?#include typedef unsigned char uint8;sbit DB0 = P1^0;void main(){ \x05unsigned char i,k,p,t,j;\x05char l;\x05unsigned char a[]={0,1,2,4,6,16,32,64};\x05\x05\x05\x05\x05\x05\x05\x05\x05 //亮度数组以实

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 11:43:08
谁知道单片机水滴实验的原理啊?#include typedef unsigned char uint8;sbit DB0 = P1^0;void main(){ \x05unsigned char i,k,p,t,j;\x05char l;\x05unsigned char a[]={0,1,2,4,6,16,32,64};\x05\x05\x05\x05\x05\x05\x05\x05\x05 //亮度数组以实

谁知道单片机水滴实验的原理啊?#include typedef unsigned char uint8;sbit DB0 = P1^0;void main(){ \x05unsigned char i,k,p,t,j;\x05char l;\x05unsigned char a[]={0,1,2,4,6,16,32,64};\x05\x05\x05\x05\x05\x05\x05\x05\x05 //亮度数组以实
谁知道单片机水滴实验的原理啊?
#include
typedef unsigned char uint8;
sbit DB0 = P1^0;
void main()
{
\x05unsigned char i,k,p,t,j;
\x05char l;
\x05unsigned char a[]={0,1,2,4,6,16,32,64};\x05\x05\x05\x05\x05\x05\x05\x05\x05 //亮度数组以实现拖尾效果
\x05unsigned char b[]={0,34,48,59,68,76,84,91,97,103,109,114,119,123,126};\x05 //时间数组以实现加速效果
\x05signed char c[]={-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7};
\x05
\x05P1=0xFF;
while(1)
{
//水滴形成(渐变效果)
k=0;
for(i=0;i

谁知道单片机水滴实验的原理啊?#include typedef unsigned char uint8;sbit DB0 = P1^0;void main(){ \x05unsigned char i,k,p,t,j;\x05char l;\x05unsigned char a[]={0,1,2,4,6,16,32,64};\x05\x05\x05\x05\x05\x05\x05\x05\x05 //亮度数组以实
你所指的水滴实验是模拟水滴下来逐渐加快、之后是匀速的效果.是吧.如果是这个意思,那就是通过更改流水灯的移动速度(即时间长短的修改).