|
发表于 2021-10-20 20:45:54
|
显示全部楼层
楼主你好:
感谢你提供插件,我使用你的插件编译成功后,始终不能显示数值。如果你有时间,请帮忙看看,或者给个排查思路,谢谢!
传感器配置:
- platform: dart
formaldehyde:
name: "CH2O"
id: CH2O
uart_id: utt2
uart:
- id: utt2
tx_pin: D4
rx_pin: D7
baud_rate: 9600
1306屏幕显示配置:
it.printf(0, 32, id(font1), "CH2O:%.1f", id(CH2O).state);
dart.cpp配置为,与楼主的不一致
static const uint8_t DART_COMMAND_GET_PPM[] = {0xFF,0x01,0x86,0x00,0x00,0x00,0x00,0x00,0x79};//问答模式下,请求发送
static const uint8_t DART_COMMAND_SET_QA[] = {0xFF,0x01,0x78,0x41,0x00,0x00,0x00,0x00,0x46};//切换到问答模式
static const uint8_t DART_COMMAND_SET_NQA[] = {0xFF,0x01,0x78,0x40,0x00,0x00,0x00,0x00,0x47};//切换到主动上传模式 |
|