RomdisplayromucharhllRom0x0fhRom0xf0h4ifh0x00h0x09LCD_WriteDatah0x30elseLCD_WriteDatah0x37ifl0x00l0x09LCD_WriteDatal0x30elseLCD_WriteDatal0x37voidtemshow温度显示LCD_WriteCom0x01写命令不能放在此位置DQreset无论什么命令首先都要发起初始化tmpcha
ge温度转换(相当于读温度前的初始化)temptmp读温度A1temp10000A2temp100001000A3temp100001000100A4temp10000100010010A5temp10000100010010LCD_WriteCom0x80LCD_WriteDatatLCD_WriteDataeLCD_WriteDatamLCD_WriteDatapLCD_WriteData
fLCD_WriteCom0x800x40LCD_WriteDataLCD_WriteData0A1LCD_WriteData0A2LCD_WriteDataLCD_WriteData0A3LCD_WriteData0A4LCD_WriteData0A5voidromshow序列码显示LCD_I
itrw0DQreset无论什么命令首先都要发起初始化delay1tmpwritebyte0x33读ROM,允许主机读出DS18B20的64为二进制序列码(仅限于总线上存在单只DS18B20)delay1atmpreadbtmpreadctmpreaddtmpreadetmpreadftmpreadgtmpreadhtmpreadLCD_WriteCom0x80LCD第一行开始LCD_WriteData
LCD_WriteDatauLCD_WriteDatamLCD_WriteDatabLCD_WriteDataeLCD_WriteDatarLCD_WriteCom0x800x40lCD第二行开始Display18B20RomaDisplay18B20RombDisplay18B20RomcDisplay18B20RomdDisplay18B20RomeDisplay18B20RomfDisplay18B20RomgDisplay18B20Romhvoidmai
fdu0防LED灯乱闪we0防LED灯乱闪ifK20独立键盘k2按下LCD_WriteCom0x01whileK10用while循环实时扫描,当K1没被按下,一直扫描temshowifK10独立键盘k1按下LCD_WriteCom0x01romshow
fr