Include first driver: SHT31

Make I2C reads blocking w/ timeout
Add SHT31 driver, roughly :)
Fix mg_time() to return a double.
This commit is contained in:
Pim van Pelt
2018-04-02 17:29:13 +02:00
parent cef7c5107d
commit b1d92a32a8
9 changed files with 396 additions and 35 deletions

View File

@ -30,6 +30,8 @@ int log_print_prefix(enum cs_log_level l, const char *func, const char *file);
} while (0)
float mg_time();
double mg_time();
void mgos_usleep(uint32_t usecs);
#endif // __MGOS_MOCK_H