基于单片机光敏电阻路灯控制设计
【资源下载】下载地址如下1392:
https://docs.qq.com/doc/DTlRSd01BZXNpRUxl
#include<reg51.h> #define uchar unsigned char #define uint unsigned int sbit cs = P3^0; sbit rd = P3^1; sbit rw = P3^2; sbit output = P3^4; uchar temp; void delay(uint xms) { uint t1, t2; for (t1 = 0; t1 < xms; t1++) for (t2 = 0; t2 < 110; t2++); } void main() { cs = 0; rd = 0; delay(40);