将本段C语言代码转换为流程图#include<reg52.h> #define DataPort P0 sbit SM_COM=P2^0; sbit SM_SEG=P2^1; sbit LCD1602=P1^2; unsigned char code SEG_DuanMa[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; unsigned char code SEG_WeiMa[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; void Delay(unsigned int t); main() { unsigned char i=0; LCD1602=0; while(1) { DataPort=0; SM_SEG=1; SM_SEG=0; DataPort=SEG_WeiMa[i]; SM_COM=1; SM_COM=0; DataPort=SEG_DuanMa[i]; SM_SEG=1; SM_SEG=0; Delay(200); i++; if(8==i) i=0; } } void Delay(unsigned int t) { while(--t); }
时间: 2024-04-03 20:30:32 浏览: 94
以下为该C语言代码的流程图:
![flowchart](https://img-blog.csdn.net/20180529142050108?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xhbmR5X3Npbmdo/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/q/80)
阅读全文