5
16
89
注册会员
#include "STC32G.H" //导入预定义头,不同的芯片用不同的头 void main() //主程序 { P2M0 = 0x00;P2M1 = 0x00; //准双向口 while(1) { P20 = 1; //灭 根据需要选择端口 P21 = 0; //亮 P22 = 1; //灭 P23 = 0; //亮 P24 = 1; //灭 P25 = 0; //亮 } }复制代码
使用道具 举报 送花
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-5-2 22:04 , Processed in 0.116558 second(s), 48 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.