LM358貼片封裝選擇通用庫中的SO-8可以嗎?當然可以,LM358貼片封裝是SOP8,直插DIP8,放上去之後自己對應腳位連線即可
#include#include //_nop_();延時函數(shù)用#define Disdata P0 //段碼輸出口#define discan P2 //掃描口#define uchar unsigned char#define uint unsigned intsbit DQ=P3^7; //溫度輸入口sbit DIN=P0^0; //LED小數(shù)點控
74HC595時序圖如下#include //52芯片管腳定義頭文件#include //內(nèi)部包含延時函數(shù) _nop_();#define uchar unsigned char#define uint unsigned intuchar code DAT[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};sbi