* @brief Main function */ int main(void) { uint8_t ch; lpuart_config_t config; BOARD_ConfigMPU(); BOARD_InitBootPins(); BOARD_InitBootClocks(); /* * config.baudRate_Bps = 115200U; * config.parityMode = kLPUART_ParityDisabled; * config.stopBitCount = ...
{ DS18B20_Init(); delay_1ms(1); DS18B20_WriteByte(0xcc);//跳过ROM DS18B20_WriteByte(0x44);//发送指令RAM温度变换 } /*读取温度*/ void Ds18b20ReadTempCom(void) { DS18B20_Init(); delay_1ms(1); DS18B20_WriteByte(0xcc);//跳过ROM DS18B20_WriteByte(0xbe);//发送指令RAM读暂时寄存器 } ...
* @brief Main function */ int main(void) { uint8_t ch; lpuart_config_t config; BOARD_ConfigMPU(); BOARD_InitBootPins(); BOARD_InitBootClocks(); /* * config.baudRate_Bps = 115200U; * config.parityMode = kLPUART_ParityDisabled; * config.stopBitCou...