单总线DS18B20 已经知道4个的程序 再加两个怎么加?rom地址不会啊

2025-01-07 01:56:10
推荐回答(1个)
回答1:

unsigned char ds18b20_romA[8]={0x8E,0x00,0x00,0x00,0xb8,0xc5,0x30,0x28};
unsigned char ds18b20_romB[8]={0xB9,0x00,0x00,0x00,0xb8,0xc5,0x31,0x28};
unsigned char ds18b20_romC[8]={0xE0,0x00,0x00,0x00,0xb8,0xc5,0x32,0x28};
unsigned char ds18b20_romD[8]={0xD8,0x00,0x00,0x00,0xb8,0xc5,0x33,0x28};
unsigned char ds18b20_romE[8]={0x52,0x00,0x00,0x00,0xb8,0xc5,0x34,0x28};
unsigned char ds18b20_romF[8]={0x75,0x00,0x00,0x00,0xb8,0xc5,0x35,0x28};