* AM2321的取温度间隔得大于2s,否则,i2c会不工作了 * SimpleTimer有个bug,会导致两次快速的读温度,现在读温度函数里加了保护 * Blynk有个bug,会导致无法把数据传到服务器 * 现在可以正常工作了
Diff: main.cpp
- Revision:
- 1:e34100dd6532
- Parent:
- 0:740c1eb2df13
--- a/main.cpp Thu Jun 23 11:16:14 2016 +0000 +++ b/main.cpp Fri Jun 24 02:06:43 2016 +0000 @@ -51,7 +51,7 @@ { static uint32_t start; start = g_MainTimer.read_ms(); - pc.printf("update_oled: %u ms\r\n", start); + //pc.printf("update_oled: %u ms\r\n", start); myled = 1; wait_ms(60); myled = 0; @@ -103,8 +103,8 @@ wait(2.0); Blynk.begin(auth, wifi, SSID, PASS); + wait(3.0); #endif - wait(3.0); g_Ticker.detach(); while(1) {