51單片機 使用IIC轉接板驅動LCD1602

#include <reg52.h> #include "intrins.h" #define uchar unsigned char #define uint unsigned int //#define L1 0x80 // 第一行寫入地址 //#define L2 0xc0 // 第二行寫入地址 sbit SCL = P2^0; sbit SDA = P2^1;
相關文章
相關標籤/搜索