typedef unsigned int u16; typedef unsigned char uchar; u16 receiveData; sbit A5=P1^4; sbit A4=P1^3; sbit A3=P1^2; sbit A2=P1^1; sbit A1=P1^0; void delay(u16 i) { while(i--); } int main() { receiveData=4; if(receiveData==1) { A5=1;A4=1;A3=1;A2=1;A1=0; delay(22500); //50000 450ms A5=1;A4=1;A3=1;A2=1;A1=1; } else if(receiveData==2) { A5=1;A4=1;A3=1;A2=0;A1=1; delay(225 00); //50000 450ms A5=1;A4=1;A3=1;A2=1;A1=1; } 请问怎么讲上面的C语言程序改写成openmv适用的程序
Y
ydcq 发布的帖子
-
请问怎么改这个程序?有大佬帮忙吗